RegionUrlMapPathMatcherPathRuleRouteActionWeightedBackendService.fromMap constructor

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

Implementation

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