URLMapPathMatcherRouteRuleRouteActionCachePolicyNegativeCachingPolicy.fromMap constructor

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

Implementation

factory URLMapPathMatcherRouteRuleRouteActionCachePolicyNegativeCachingPolicy.fromMap(Map<String, dynamic> map) {
  return URLMapPathMatcherRouteRuleRouteActionCachePolicyNegativeCachingPolicy(
    code: (() { final guardedValue = map['code']; if (guardedValue == null) return null; return pulumi.Input.fromValue((guardedValue as num).toInt()); })(),
    ttl: (() { final guardedValue = map['ttl']; if (guardedValue == null) return null; return pulumi.Input.fromValue(URLMapPathMatcherRouteRuleRouteActionCachePolicyNegativeCachingPolicyTtl.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
  );
}