fromMap static method

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

Construct from Map.

Implementation

static CallServerTypeTelegramReflector? 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 peer_tag = _map['peer_tag']! as bytes;
  var is_tcp = _map['is_tcp']! as bool;
  return CallServerTypeTelegramReflector(
    extra: extra,
    clientId: clientId,
    peer_tag: peer_tag,
    is_tcp: is_tcp,
  );
}