toJson method

  1. @override
Map<String, dynamic> toJson()
override

Object to Map serializer

Implementation

@override
Map<String, dynamic> toJson() {
  return {
    '@type': 'botInfo',
    if (extra != null) '@extra': extra,
    'short_description': short_description,
    'description': description,
    'photo': photo,
    'animation': animation,
    'menu_button': menu_button,
    'commands': commands,
    'default_group_administrator_rights': default_group_administrator_rights,
    'default_channel_administrator_rights':
        default_channel_administrator_rights,
    'edit_commands_link': edit_commands_link,
    'edit_description_link': edit_description_link,
    'edit_description_media_link': edit_description_media_link,
    'edit_settings_link': edit_settings_link
  };
}