SwitchInlineQueryChosenChat.fromJson constructor

SwitchInlineQueryChosenChat.fromJson(
  1. Map<String, dynamic> json
)

Creates a SwitchInlineQueryChosenChat object from JSON object

Implementation

factory SwitchInlineQueryChosenChat.fromJson(Map<String, dynamic> json) {
  return SwitchInlineQueryChosenChat(
    query: json['query'],
    allowUserChats: json['allow_user_chats'],
    allowBotChats: json['allow_bot_chats'],
    allowGroupChats: json['allow_group_chats'],
    allowChannelChats: json['allow_channel_chats'],
  );
}