toJson method
Returns this as a serializable JSON value.
Implementation
@override
Map<String, Object?> toJson() => {
'runtimeType': 'YTextDeltaInsert',
'insert': insert,
'attributes': (attributes == null
? const None().toJson()
: Option.fromValue(attributes).toJson((some) => some.toJson())),
};