fromMap static method

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

Construct from Map.

Implementation

static InternalLinkTypeVideoChat? 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 chat_username = _map['chat_username']! as String;
  var invite_hash = _map['invite_hash']! as String;
  var is_live_stream = _map['is_live_stream']! as bool;
  return InternalLinkTypeVideoChat(
    extra: extra,
    clientId: clientId,
    chat_username: chat_username,
    invite_hash: invite_hash,
    is_live_stream: is_live_stream,
  );
}