toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> result = {
    'enterSendsMessage': ?enterSendsMessage,
    'placeholder': ?placeholder,
    'spellcheck': ?spellcheck,
  };

  if (autofocus != null) {
    if (autofocus == true) {
      result['autofocus'] = 'smart';
    } else {
      result['autofocus'] = autofocus;
    }
  }

  return result;
}