toJson method
Implementation
Map<String, dynamic> toJson() {
final result = <String, dynamic>{};
if (autofocus != null) {
if (autofocus == true) {
result['autofocus'] = 'smart';
} else {
result['autofocus'] = autofocus;
}
}
if (enterSendsMessage != null) {
result['enterSendsMessage'] = enterSendsMessage;
}
if (placeholder != null) {
result['placeholder'] = placeholder;
}
if (spellcheck != null) {
result['spellcheck'] = spellcheck;
}
return result;
}