fromMap static method

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

Construct from Map.

Implementation

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