GetRouteComputeV1Result.fromMap constructor

GetRouteComputeV1Result.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory GetRouteComputeV1Result.fromMap(Map<String, dynamic> map) {
  return GetRouteComputeV1Result(
    asPaths: pulumi.Input.decodeList<RouteAsPathResponseComputeV1>(map['asPaths']!, (value) => RouteAsPathResponseComputeV1.fromMap((value as Map).cast<String, dynamic>())),
    creationTimestamp: map['creationTimestamp'] as String,
    description: map['description'] as String,
    destRange: map['destRange'] as String,
    kind: map['kind'] as String,
    name: map['name'] as String,
    network: map['network'] as String,
    nextHopGateway: map['nextHopGateway'] as String,
    nextHopHub: map['nextHopHub'] as String,
    nextHopIlb: map['nextHopIlb'] as String,
    nextHopInstance: map['nextHopInstance'] as String,
    nextHopIp: map['nextHopIp'] as String,
    nextHopNetwork: map['nextHopNetwork'] as String,
    nextHopPeering: map['nextHopPeering'] as String,
    nextHopVpnTunnel: map['nextHopVpnTunnel'] as String,
    priority: map['priority'] as int,
    routeStatus: map['routeStatus'] as String,
    routeType: map['routeType'] as String,
    selfLink: map['selfLink'] as String,
    tags: (map['tags'] as List).cast<String>(),
    warnings: pulumi.Input.decodeList<RouteWarningsItemResponseComputeV1>(map['warnings']!, (value) => RouteWarningsItemResponseComputeV1.fromMap((value as Map).cast<String, dynamic>())),
  );
}