URLMapPathMatcherRouteRuleRouteActionWeightedBackendService.fromMap constructor

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

Implementation

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