fromMap static method
override
Construct from Map.
Implementation
static KeyboardButtonTypeRequestChat? fromMap(Map<String, dynamic>? _map) {
if (_map == null) return null;
var _ = _map["@type"];
if (_ != CONSTRUCTOR) return null;
var extra = _map['@extra'];
var clientId = _map['@clientId'];
var id = _map['id']! as int;
var chat_is_channel = _map['chat_is_channel']! as bool;
var restrict_chat_is_forum = _map['restrict_chat_is_forum']! as bool;
var chat_is_forum = _map['chat_is_forum']! as bool;
var restrict_chat_has_username =
_map['restrict_chat_has_username']! as bool;
var chat_has_username = _map['chat_has_username']! as bool;
var chat_is_created = _map['chat_is_created']! as bool;
var user_administrator_rights =
ChatAdministratorRights.fromMap(_map['user_administrator_rights']);
var bot_administrator_rights =
ChatAdministratorRights.fromMap(_map['bot_administrator_rights']);
var bot_is_member = _map['bot_is_member']! as bool;
return KeyboardButtonTypeRequestChat(
extra: extra,
clientId: clientId,
id: id,
chat_is_channel: chat_is_channel,
restrict_chat_is_forum: restrict_chat_is_forum,
chat_is_forum: chat_is_forum,
restrict_chat_has_username: restrict_chat_has_username,
chat_has_username: chat_has_username,
chat_is_created: chat_is_created,
user_administrator_rights: user_administrator_rights,
bot_administrator_rights: bot_administrator_rights,
bot_is_member: bot_is_member,
);
}