fromMap static method

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

Construct from Map.

Implementation

static ProxyTypeHttp? 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 username = _map['username']! as String;
  var password = _map['password']! as String;
  var http_only = _map['http_only']! as bool;
  return ProxyTypeHttp(
    extra: extra,
    clientId: clientId,
    username: username,
    password: password,
    http_only: http_only,
  );
}