fromMap static method
override
Construct from Map.
Implementation
static BanChatMember? 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 chat_id = _map['chat_id']! as int;
var member_id = MessageSender.fromMap(_map['member_id'])!;
var banned_until_date = _map['banned_until_date']! as int;
var revoke_messages = _map['revoke_messages']! as bool;
return BanChatMember(
extra: extra,
clientId: clientId,
chat_id: chat_id,
member_id: member_id,
banned_until_date: banned_until_date,
revoke_messages: revoke_messages,
);
}