TargetChatTypes.fromJson constructor
Parses a TargetChatTypes from TDLib JSON.
Implementation
factory TargetChatTypes.fromJson(Map<String, dynamic> json) =>
TargetChatTypes(
allowUserChats: _readBool(json['allow_user_chats']),
allowBotChats: _readBool(json['allow_bot_chats']),
allowGroupChats: _readBool(json['allow_group_chats']),
allowChannelChats: _readBool(json['allow_channel_chats']),
);