InterconnectAttachment.fromJson constructor

InterconnectAttachment.fromJson(
  1. Map json_
)

Implementation

InterconnectAttachment.fromJson(core.Map json_)
    : this(
        adminEnabled: json_.containsKey('adminEnabled')
            ? json_['adminEnabled'] as core.bool
            : null,
        bandwidth: json_.containsKey('bandwidth')
            ? json_['bandwidth'] as core.String
            : null,
        candidateIpv6Subnets: json_.containsKey('candidateIpv6Subnets')
            ? (json_['candidateIpv6Subnets'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        candidateSubnets: json_.containsKey('candidateSubnets')
            ? (json_['candidateSubnets'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        cloudRouterIpAddress: json_.containsKey('cloudRouterIpAddress')
            ? json_['cloudRouterIpAddress'] as core.String
            : null,
        cloudRouterIpv6Address: json_.containsKey('cloudRouterIpv6Address')
            ? json_['cloudRouterIpv6Address'] as core.String
            : null,
        cloudRouterIpv6InterfaceId:
            json_.containsKey('cloudRouterIpv6InterfaceId')
                ? json_['cloudRouterIpv6InterfaceId'] as core.String
                : null,
        configurationConstraints:
            json_.containsKey('configurationConstraints')
                ? InterconnectAttachmentConfigurationConstraints.fromJson(
                    json_['configurationConstraints']
                        as core.Map<core.String, core.dynamic>)
                : null,
        creationTimestamp: json_.containsKey('creationTimestamp')
            ? json_['creationTimestamp'] as core.String
            : null,
        customerRouterIpAddress: json_.containsKey('customerRouterIpAddress')
            ? json_['customerRouterIpAddress'] as core.String
            : null,
        customerRouterIpv6Address:
            json_.containsKey('customerRouterIpv6Address')
                ? json_['customerRouterIpv6Address'] as core.String
                : null,
        customerRouterIpv6InterfaceId:
            json_.containsKey('customerRouterIpv6InterfaceId')
                ? json_['customerRouterIpv6InterfaceId'] as core.String
                : null,
        dataplaneVersion: json_.containsKey('dataplaneVersion')
            ? json_['dataplaneVersion'] as core.int
            : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        edgeAvailabilityDomain: json_.containsKey('edgeAvailabilityDomain')
            ? json_['edgeAvailabilityDomain'] as core.String
            : null,
        encryption: json_.containsKey('encryption')
            ? json_['encryption'] as core.String
            : null,
        googleReferenceId: json_.containsKey('googleReferenceId')
            ? json_['googleReferenceId'] as core.String
            : null,
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        interconnect: json_.containsKey('interconnect')
            ? json_['interconnect'] as core.String
            : null,
        ipsecInternalAddresses: json_.containsKey('ipsecInternalAddresses')
            ? (json_['ipsecInternalAddresses'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        labelFingerprint: json_.containsKey('labelFingerprint')
            ? json_['labelFingerprint'] as core.String
            : null,
        labels: json_.containsKey('labels')
            ? (json_['labels'] as core.Map<core.String, core.dynamic>).map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        mtu: json_.containsKey('mtu') ? json_['mtu'] as core.int : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        operationalStatus: json_.containsKey('operationalStatus')
            ? json_['operationalStatus'] as core.String
            : null,
        pairingKey: json_.containsKey('pairingKey')
            ? json_['pairingKey'] as core.String
            : null,
        partnerAsn: json_.containsKey('partnerAsn')
            ? json_['partnerAsn'] as core.String
            : null,
        partnerMetadata: json_.containsKey('partnerMetadata')
            ? InterconnectAttachmentPartnerMetadata.fromJson(
                json_['partnerMetadata']
                    as core.Map<core.String, core.dynamic>)
            : null,
        privateInterconnectInfo: json_.containsKey('privateInterconnectInfo')
            ? InterconnectAttachmentPrivateInfo.fromJson(
                json_['privateInterconnectInfo']
                    as core.Map<core.String, core.dynamic>)
            : null,
        region: json_.containsKey('region')
            ? json_['region'] as core.String
            : null,
        remoteService: json_.containsKey('remoteService')
            ? json_['remoteService'] as core.String
            : null,
        router: json_.containsKey('router')
            ? json_['router'] as core.String
            : null,
        satisfiesPzs: json_.containsKey('satisfiesPzs')
            ? json_['satisfiesPzs'] as core.bool
            : null,
        selfLink: json_.containsKey('selfLink')
            ? json_['selfLink'] as core.String
            : null,
        stackType: json_.containsKey('stackType')
            ? json_['stackType'] as core.String
            : null,
        state:
            json_.containsKey('state') ? json_['state'] as core.String : null,
        subnetLength: json_.containsKey('subnetLength')
            ? json_['subnetLength'] as core.int
            : null,
        type: json_.containsKey('type') ? json_['type'] as core.String : null,
        vlanTag8021q: json_.containsKey('vlanTag8021q')
            ? json_['vlanTag8021q'] as core.int
            : null,
      );