fromMap static method
override
Construct from Map.
Implementation
static ChatEventMemberRestricted? 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 member_id = MessageSender.fromMap(_map['member_id'])!;
var old_status = ChatMemberStatus.fromMap(_map['old_status'])!;
var new_status = ChatMemberStatus.fromMap(_map['new_status'])!;
return ChatEventMemberRestricted(
extra: extra,
clientId: clientId,
member_id: member_id,
old_status: old_status,
new_status: new_status,
);
}