GetRouteResult.fromMap constructor

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

Implementation

factory GetRouteResult.fromMap(Map<String, dynamic> map) {
  return GetRouteResult(
    allowConflictingSubnetworks: map['allowConflictingSubnetworks'] as bool,
    asPaths: pulumi.Input.decodeList<RouteAsPathResponse>(map['asPaths']!, (value) => RouteAsPathResponse.fromMap((value as Map).cast<String, dynamic>())),
    creationTimestamp: map['creationTimestamp'] as String,
    description: map['description'] as String,
    destRange: map['destRange'] as String,
    ilbRouteBehaviorOnUnhealthy: map['ilbRouteBehaviorOnUnhealthy'] 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,
    nextHopInterRegionCost: map['nextHopInterRegionCost'] as int,
    nextHopInterconnectAttachment: map['nextHopInterconnectAttachment'] as String,
    nextHopIp: map['nextHopIp'] as String,
    nextHopMed: map['nextHopMed'] as int,
    nextHopNetwork: map['nextHopNetwork'] as String,
    nextHopOrigin: map['nextHopOrigin'] 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,
    selfLinkWithId: map['selfLinkWithId'] as String,
    tags: (map['tags'] as List).cast<String>(),
    warnings: pulumi.Input.decodeList<RouteWarningsItemResponse>(map['warnings']!, (value) => RouteWarningsItemResponse.fromMap((value as Map).cast<String, dynamic>())),
  );
}