fromMap static method
override
Construct from Map.
Implementation
static ChatEventLogFilters? 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 message_edits = _map['message_edits']! as bool;
var message_deletions = _map['message_deletions']! as bool;
var message_pins = _map['message_pins']! as bool;
var member_joins = _map['member_joins']! as bool;
var member_leaves = _map['member_leaves']! as bool;
var member_invites = _map['member_invites']! as bool;
var member_promotions = _map['member_promotions']! as bool;
var member_restrictions = _map['member_restrictions']! as bool;
var info_changes = _map['info_changes']! as bool;
var setting_changes = _map['setting_changes']! as bool;
var invite_link_changes = _map['invite_link_changes']! as bool;
var video_chat_changes = _map['video_chat_changes']! as bool;
var forum_changes = _map['forum_changes']! as bool;
return ChatEventLogFilters(
extra: extra,
clientId: clientId,
message_edits: message_edits,
message_deletions: message_deletions,
message_pins: message_pins,
member_joins: member_joins,
member_leaves: member_leaves,
member_invites: member_invites,
member_promotions: member_promotions,
member_restrictions: member_restrictions,
info_changes: info_changes,
setting_changes: setting_changes,
invite_link_changes: invite_link_changes,
video_chat_changes: video_chat_changes,
forum_changes: forum_changes,
);
}