ProxyInfo.fromJson constructor

ProxyInfo.fromJson(
  1. Map json_
)

Implementation

ProxyInfo.fromJson(core.Map json_)
    : this(
        excludedHosts: json_.containsKey('excludedHosts')
            ? (json_['excludedHosts'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        host: json_.containsKey('host') ? json_['host'] as core.String : null,
        pacUri: json_.containsKey('pacUri')
            ? json_['pacUri'] as core.String
            : null,
        port: json_.containsKey('port') ? json_['port'] as core.int : null,
      );