toJson method
Returns a JSON representation of this.
Implementation
@override
Map<String, Object?> toJson() => {
'runtimeType': 'MacroArg',
'name': name.toJson(),
'default-expr': (defaultExpr == null
? const None().toJson()
: Option.fromValue(defaultExpr).toJson((some) => some.toJson())),
};