URLMapPathMatcherDefaultRouteActionWeightedBackendService.fromMap constructor
URLMapPathMatcherDefaultRouteActionWeightedBackendService.fromMap(
- Map<String, dynamic> map
)
Implementation
factory URLMapPathMatcherDefaultRouteActionWeightedBackendService.fromMap(Map<String, dynamic> map) {
return URLMapPathMatcherDefaultRouteActionWeightedBackendService(
backendService: (() { final guardedValue = map['backendService']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
headerAction: (() { final guardedValue = map['headerAction']; if (guardedValue == null) return null; return pulumi.Input.fromValue(URLMapPathMatcherDefaultRouteActionWeightedBackendServiceHeaderAction.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
weight: (() { final guardedValue = map['weight']; if (guardedValue == null) return null; return pulumi.Input.fromValue((guardedValue as num).toInt()); })(),
);
}