toJson method

Map toJson()

Creates a json from the object

Implementation

Map toJson() {
  return {
    'keyboard': keyboard,
    'resize_keyboard': resizeKeyboard,
    'one_time_keyboard': oneTimeKeyboard,
    'input_field_placeholder': inputFieldPlaceholder,
    'selective': selective,
  }..removeWhere((_, v) => v == null);
}