fromMap static method

ChatEventHasAggressiveAntiSpamEnabledToggled? fromMap(
  1. Map<String, dynamic>? _map
)
override

Construct from Map.

Implementation

static ChatEventHasAggressiveAntiSpamEnabledToggled? 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 has_aggressive_anti_spam_enabled =
      _map['has_aggressive_anti_spam_enabled']! as bool;
  return ChatEventHasAggressiveAntiSpamEnabledToggled(
    extra: extra,
    clientId: clientId,
    has_aggressive_anti_spam_enabled: has_aggressive_anti_spam_enabled,
  );
}