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,
    'actionLabel': actionLabel,
    'inputAction': inputAction.toString(),
    'textCapitalization': textCapitalization.toString(),
    'keyboardAppearance': keyboardAppearance.toString(),
  };
}