toJson method

  1. @override
Map<String, dynamic> toJson()
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,
    };