Interconnect.fromJson constructor

Interconnect.fromJson(
  1. Map json_
)

Implementation

Interconnect.fromJson(core.Map json_)
    : this(
        adminEnabled: json_.containsKey('adminEnabled')
            ? json_['adminEnabled'] as core.bool
            : null,
        availableFeatures: json_.containsKey('availableFeatures')
            ? (json_['availableFeatures'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        circuitInfos: json_.containsKey('circuitInfos')
            ? (json_['circuitInfos'] as core.List)
                .map((value) => InterconnectCircuitInfo.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        creationTimestamp: json_.containsKey('creationTimestamp')
            ? json_['creationTimestamp'] as core.String
            : null,
        customerName: json_.containsKey('customerName')
            ? json_['customerName'] as core.String
            : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        expectedOutages: json_.containsKey('expectedOutages')
            ? (json_['expectedOutages'] as core.List)
                .map((value) => InterconnectOutageNotification.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        googleIpAddress: json_.containsKey('googleIpAddress')
            ? json_['googleIpAddress'] as core.String
            : null,
        googleReferenceId: json_.containsKey('googleReferenceId')
            ? json_['googleReferenceId'] as core.String
            : null,
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        interconnectAttachments: json_.containsKey('interconnectAttachments')
            ? (json_['interconnectAttachments'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        interconnectType: json_.containsKey('interconnectType')
            ? json_['interconnectType'] as core.String
            : 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,
        linkType: json_.containsKey('linkType')
            ? json_['linkType'] as core.String
            : null,
        location: json_.containsKey('location')
            ? json_['location'] as core.String
            : null,
        macsec: json_.containsKey('macsec')
            ? InterconnectMacsec.fromJson(
                json_['macsec'] as core.Map<core.String, core.dynamic>)
            : null,
        macsecEnabled: json_.containsKey('macsecEnabled')
            ? json_['macsecEnabled'] as core.bool
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        nocContactEmail: json_.containsKey('nocContactEmail')
            ? json_['nocContactEmail'] as core.String
            : null,
        operationalStatus: json_.containsKey('operationalStatus')
            ? json_['operationalStatus'] as core.String
            : null,
        peerIpAddress: json_.containsKey('peerIpAddress')
            ? json_['peerIpAddress'] as core.String
            : null,
        provisionedLinkCount: json_.containsKey('provisionedLinkCount')
            ? json_['provisionedLinkCount'] as core.int
            : null,
        remoteLocation: json_.containsKey('remoteLocation')
            ? json_['remoteLocation'] as core.String
            : null,
        requestedFeatures: json_.containsKey('requestedFeatures')
            ? (json_['requestedFeatures'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        requestedLinkCount: json_.containsKey('requestedLinkCount')
            ? json_['requestedLinkCount'] as core.int
            : null,
        satisfiesPzs: json_.containsKey('satisfiesPzs')
            ? json_['satisfiesPzs'] as core.bool
            : null,
        selfLink: json_.containsKey('selfLink')
            ? json_['selfLink'] as core.String
            : null,
        state:
            json_.containsKey('state') ? json_['state'] as core.String : null,
      );