toJson method

Map<String, dynamic> toJson()

Converts a SwitchInlineQueryChosenChat object to JSON object

Implementation

Map<String, dynamic> toJson() {
  return {
    'query': query,
    'allow_user_chats': allowUserChats,
    'allow_bot_chats': allowBotChats,
    'allow_group_chats': allowGroupChats,
    'allow_channel_chats': allowChannelChats,
  }..removeWhere(_nullFilter);
}