toJson method

  1. @override
Map<String, dynamic> toJson()
override

Implementation

@override
Map<String, dynamic> toJson() => <String, Object?>{
      'type': type,
      'length': length ?? -1,
      'gcRootType': gcRootType ?? '',
      'elements': elements?.map((f) => f.toJson()).toList(),
    };