TargetChatChosen.fromJson constructor

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

Parse from a json

Implementation

factory TargetChatChosen.fromJson(Map<String, dynamic> json) =>
    TargetChatChosen(
      allowUserChats: json['allow_user_chats'],
      allowBotChats: json['allow_bot_chats'],
      allowGroupChats: json['allow_group_chats'],
      allowChannelChats: json['allow_channel_chats'],
    );