IpConfiguration.fromJson constructor

IpConfiguration.fromJson(
  1. Map _json
)

Implementation

IpConfiguration.fromJson(core.Map _json)
    : this(
        allocatedIpRange: _json.containsKey('allocatedIpRange')
            ? _json['allocatedIpRange'] as core.String
            : null,
        authorizedNetworks: _json.containsKey('authorizedNetworks')
            ? (_json['authorizedNetworks'] as core.List)
                .map<AclEntry>((value) => AclEntry.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        ipv4Enabled: _json.containsKey('ipv4Enabled')
            ? _json['ipv4Enabled'] as core.bool
            : null,
        privateNetwork: _json.containsKey('privateNetwork')
            ? _json['privateNetwork'] as core.String
            : null,
        requireSsl: _json.containsKey('requireSsl')
            ? _json['requireSsl'] as core.bool
            : null,
      );