Creates an instance of this class from a JSON object.
Source
factory TextEditingState.fromJSON(Map<String, dynamic> encoded) {
return new TextEditingState(
text: encoded['text'],
selectionBase: encoded['selectionBase'] ?? -1,
selectionExtent: encoded['selectionExtent'] ?? -1,
selectionIsDirectional: encoded['selectionIsDirectional'] ?? false,
selectionAffinity: _toTextAffinity(encoded['selectionAffinity']) ?? TextAffinity.downstream,
composingBase: encoded['composingBase'] ?? -1,
composingExtent: encoded['composingExtent'] ?? -1,
);
}