toJson method

  1. @override
Map<String, Object?> toJson()
override

Returns this as a serializable JSON value.

Implementation

@override
Map<String, Object?> toJson() => {
      'runtimeType': 'YTextDeltaRetain',
      'retain': retain,
      'attributes': (attributes == null
          ? const None().toJson()
          : Option.fromValue(attributes).toJson((some) => some.toJson())),
    };