fromMap static method
override
Construct from Map.
Implementation
static ChatEventPermissionsChanged? 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 old_permissions = ChatPermissions.fromMap(_map['old_permissions'])!;
var new_permissions = ChatPermissions.fromMap(_map['new_permissions'])!;
return ChatEventPermissionsChanged(
extra: extra,
clientId: clientId,
old_permissions: old_permissions,
new_permissions: new_permissions,
);
}