KeyboardButtonTypeRequestChat.fromJson constructor
Parse from a json
Implementation
factory KeyboardButtonTypeRequestChat.fromJson(Map<String, dynamic> json) =>
KeyboardButtonTypeRequestChat(
id: json['id'],
chatIsChannel: json['chat_is_channel'],
restrictChatIsForum: json['restrict_chat_is_forum'],
chatIsForum: json['chat_is_forum'],
restrictChatHasUsername: json['restrict_chat_has_username'],
chatHasUsername: json['chat_has_username'],
chatIsCreated: json['chat_is_created'],
userAdministratorRights: json['user_administrator_rights'] == null
? null
: ChatAdministratorRights.fromJson(
json['user_administrator_rights']),
botAdministratorRights: json['bot_administrator_rights'] == null
? null
: ChatAdministratorRights.fromJson(
json['bot_administrator_rights']),
botIsMember: json['bot_is_member'],
);