Map<String, dynamic> toJSON()

Returns a representation of this object as a JSON object.

Source

Map<String, dynamic> toJSON() {
  return <String, dynamic>{
    'text': text,
    'selectionBase': selectionBase,
    'selectionExtent': selectionExtent,
    'selectionAffinity': selectionAffinity.toString(),
    'selectionIsDirectional': selectionIsDirectional,
    'composingBase': composingBase,
    'composingExtent': composingExtent,
  };
}