VpnGatewayStatusVpnConnection.fromJson constructor

VpnGatewayStatusVpnConnection.fromJson(
  1. Map json_
)

Implementation

VpnGatewayStatusVpnConnection.fromJson(core.Map json_)
    : this(
        peerExternalGateway: json_.containsKey('peerExternalGateway')
            ? json_['peerExternalGateway'] as core.String
            : null,
        peerGcpGateway: json_.containsKey('peerGcpGateway')
            ? json_['peerGcpGateway'] as core.String
            : null,
        state: json_.containsKey('state')
            ? VpnGatewayStatusHighAvailabilityRequirementState.fromJson(
                json_['state'] as core.Map<core.String, core.dynamic>)
            : null,
        tunnels: json_.containsKey('tunnels')
            ? (json_['tunnels'] as core.List)
                .map((value) => VpnGatewayStatusTunnel.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );