VpnGatewayStatusVpnConnection.fromJson constructor

VpnGatewayStatusVpnConnection.fromJson(
  1. Map _json
)

Implementation

VpnGatewayStatusVpnConnection.fromJson(core.Map _json) {
  if (_json.containsKey("peerExternalGateway")) {
    peerExternalGateway = _json["peerExternalGateway"];
  }
  if (_json.containsKey("peerGcpGateway")) {
    peerGcpGateway = _json["peerGcpGateway"];
  }
  if (_json.containsKey("state")) {
    state = new VpnGatewayStatusHighAvailabilityRequirementState.fromJson(
        _json["state"]);
  }
  if (_json.containsKey("tunnels")) {
    tunnels = (_json["tunnels"] as core.List)
        .map<VpnGatewayStatusTunnel>(
            (value) => new VpnGatewayStatusTunnel.fromJson(value))
        .toList();
  }
}