RegionUrlMapPathMatcherRouteRuleRouteActionWeightedBackendService.fromMap constructor

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

Implementation

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