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