NetworkInterface.fromJson constructor

NetworkInterface.fromJson(
  1. Map json_
)

Implementation

NetworkInterface.fromJson(core.Map json_)
    : this(
        accessConfigs: json_.containsKey('accessConfigs')
            ? (json_['accessConfigs'] as core.List)
                .map((value) => AccessConfig.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        aliasIpRanges: json_.containsKey('aliasIpRanges')
            ? (json_['aliasIpRanges'] as core.List)
                .map((value) => AliasIpRange.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        fingerprint: json_.containsKey('fingerprint')
            ? json_['fingerprint'] as core.String
            : null,
        internalIpv6PrefixLength:
            json_.containsKey('internalIpv6PrefixLength')
                ? json_['internalIpv6PrefixLength'] as core.int
                : null,
        ipv6AccessConfigs: json_.containsKey('ipv6AccessConfigs')
            ? (json_['ipv6AccessConfigs'] as core.List)
                .map((value) => AccessConfig.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        ipv6AccessType: json_.containsKey('ipv6AccessType')
            ? json_['ipv6AccessType'] as core.String
            : null,
        ipv6Address: json_.containsKey('ipv6Address')
            ? json_['ipv6Address'] as core.String
            : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        network: json_.containsKey('network')
            ? json_['network'] as core.String
            : null,
        networkAttachment: json_.containsKey('networkAttachment')
            ? json_['networkAttachment'] as core.String
            : null,
        networkIP: json_.containsKey('networkIP')
            ? json_['networkIP'] as core.String
            : null,
        nicType: json_.containsKey('nicType')
            ? json_['nicType'] as core.String
            : null,
        queueCount: json_.containsKey('queueCount')
            ? json_['queueCount'] as core.int
            : null,
        stackType: json_.containsKey('stackType')
            ? json_['stackType'] as core.String
            : null,
        subnetwork: json_.containsKey('subnetwork')
            ? json_['subnetwork'] as core.String
            : null,
      );