KeyboardButtonRequestChat.fromJson constructor
Creates a KeyboardButtonRequestChat from JSON object
Implementation
factory KeyboardButtonRequestChat.fromJson(Map<String, dynamic> json) {
return KeyboardButtonRequestChat(
requestId: json['request_id']!,
chatIsChannel: json['chat_is_channel']!,
chatIsForum: json['chat_is_forum'],
chatHasUsername: json['chat_has_username'],
chatIsCreated: json['chat_is_created'],
userAdministratorRights: json['user_administrator_rights'] != null
? ChatAdministratorRights.fromJson(json['user_administrator_rights']!)
: null,
botAdministratorRights: json['bot_administrator_rights'] != null
? ChatAdministratorRights.fromJson(json['bot_administrator_rights']!)
: null,
botIsMember: json['bot_is_member'],
requestPhoto: json['request_photo'],
requestTitle: json['request_title'],
requestUsername: json['request_username'],
);
}