VpnTunnel.fromJson constructor

VpnTunnel.fromJson(
  1. Map json_
)

Implementation

VpnTunnel.fromJson(core.Map json_)
    : this(
        creationTimestamp: json_.containsKey('creationTimestamp')
            ? json_['creationTimestamp'] as core.String
            : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        detailedStatus: json_.containsKey('detailedStatus')
            ? json_['detailedStatus'] as core.String
            : null,
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        ikeVersion: json_.containsKey('ikeVersion')
            ? json_['ikeVersion'] as core.int
            : 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,
        localTrafficSelector: json_.containsKey('localTrafficSelector')
            ? (json_['localTrafficSelector'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        peerExternalGateway: json_.containsKey('peerExternalGateway')
            ? json_['peerExternalGateway'] as core.String
            : null,
        peerExternalGatewayInterface:
            json_.containsKey('peerExternalGatewayInterface')
                ? json_['peerExternalGatewayInterface'] as core.int
                : null,
        peerGcpGateway: json_.containsKey('peerGcpGateway')
            ? json_['peerGcpGateway'] as core.String
            : null,
        peerIp: json_.containsKey('peerIp')
            ? json_['peerIp'] as core.String
            : null,
        region: json_.containsKey('region')
            ? json_['region'] as core.String
            : null,
        remoteTrafficSelector: json_.containsKey('remoteTrafficSelector')
            ? (json_['remoteTrafficSelector'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        router: json_.containsKey('router')
            ? json_['router'] as core.String
            : null,
        selfLink: json_.containsKey('selfLink')
            ? json_['selfLink'] as core.String
            : null,
        sharedSecret: json_.containsKey('sharedSecret')
            ? json_['sharedSecret'] as core.String
            : null,
        sharedSecretHash: json_.containsKey('sharedSecretHash')
            ? json_['sharedSecretHash'] as core.String
            : null,
        status: json_.containsKey('status')
            ? json_['status'] as core.String
            : null,
        targetVpnGateway: json_.containsKey('targetVpnGateway')
            ? json_['targetVpnGateway'] as core.String
            : null,
        vpnGateway: json_.containsKey('vpnGateway')
            ? json_['vpnGateway'] as core.String
            : null,
        vpnGatewayInterface: json_.containsKey('vpnGatewayInterface')
            ? json_['vpnGatewayInterface'] as core.int
            : null,
      );