toMap method
Data serializer method for this class
Implementation
Map<String, dynamic> toMap() {
return {
'text': text,
'deltas': deltas.map((TextDelta delta) => delta.toMap()).toList(),
'metadata': metadata?.toMap(),
'value': value.toJSON(),
};
}