toJson method
Returns a JSON representation of this.
Implementation
@override
Map<String, Object?> toJson() => {
'runtimeType': 'MemoryType',
'memory64': memory64,
'shared': shared,
'minimum': minimum.toString(),
'maximum': (maximum == null
? const None().toJson()
: Option.fromValue(maximum).toJson((some) => some.toString())),
};