toJson method
Returns this as a serializable JSON value.
Implementation
@override
Map<String, Object?> toJson() => {
'runtimeType': 'YTextEvent',
'target': target.toJson(),
'delta': delta.map((e) => e.toJson()).toList(),
'path': path.map((e) => e.toJson()).toList(),
};