toJson method
Returns a JSON representation of this.
Implementation
@override
Map<String, Object?> toJson() => {
'runtimeType': 'CustomDataType',
'name': name.map((e) => e.toJson()).toList(),
'arguments': arguments.toList(),
};