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