VpnGateway.fromJson constructor

VpnGateway.fromJson(
  1. Map json_
)

Implementation

VpnGateway.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,
        gatewayIpVersion: json_.containsKey('gatewayIpVersion')
            ? json_['gatewayIpVersion'] as core.String
            : null,
        id: json_.containsKey('id') ? json_['id'] 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,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        network: json_.containsKey('network')
            ? json_['network'] as core.String
            : null,
        region: json_.containsKey('region')
            ? json_['region'] as core.String
            : null,
        selfLink: json_.containsKey('selfLink')
            ? json_['selfLink'] as core.String
            : null,
        stackType: json_.containsKey('stackType')
            ? json_['stackType'] as core.String
            : null,
        vpnInterfaces: json_.containsKey('vpnInterfaces')
            ? (json_['vpnInterfaces'] as core.List)
                .map((value) => VpnGatewayVpnGatewayInterface.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );