fromMap static method

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

Construct from Map.

Implementation

static ChatEventInviteLinkEdited? 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_invite_link = ChatInviteLink.fromMap(_map['old_invite_link'])!;
  var new_invite_link = ChatInviteLink.fromMap(_map['new_invite_link'])!;
  return ChatEventInviteLinkEdited(
    extra: extra,
    clientId: clientId,
    old_invite_link: old_invite_link,
    new_invite_link: new_invite_link,
  );
}