toJson method
override
Implementation
@override
Map<String, dynamic> toJson() => <String, Object?>{
...super.toJson(),
'type': type,
'length': length ?? -1,
'variables': variables?.map((f) => f.toJson()).toList(),
if (parent?.toJson() case final parentValue?) 'parent': parentValue,
};