toJson method

Map<String, dynamic> toJson ()

Returns a representation of this object as a JSON object.

Implementation

Map<String, dynamic> toJson() {
  return <String, dynamic>{
    'inputType': inputType.toJson(),
    'obscureText': obscureText,
    'autocorrect': autocorrect,
    'smartDashesType': smartDashesType.index.toString(),
    'smartQuotesType': smartQuotesType.index.toString(),
    'enableSuggestions': enableSuggestions,
    'actionLabel': actionLabel,
    'inputAction': inputAction.toString(),
    'textCapitalization': textCapitalization.toString(),
    'keyboardAppearance': keyboardAppearance.toString(),
  };
}