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