GetCoreNetworkPolicyDocumentAttachmentRoutingPolicyRule.fromMap constructor

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

Implementation

factory GetCoreNetworkPolicyDocumentAttachmentRoutingPolicyRule.fromMap(Map<String, dynamic> map) {
  return GetCoreNetworkPolicyDocumentAttachmentRoutingPolicyRule(
    action: pulumi.Input.fromValue(GetCoreNetworkPolicyDocumentAttachmentRoutingPolicyRuleAction.fromMap((map['action']! as Map).cast<String, dynamic>())),
    conditions: pulumi.Input.fromValue(pulumi.Input.decodeList<GetCoreNetworkPolicyDocumentAttachmentRoutingPolicyRuleCondition>(map['conditions']!, (value) => GetCoreNetworkPolicyDocumentAttachmentRoutingPolicyRuleCondition.fromMap((value as Map).cast<String, dynamic>()))),
    description: (() { final guardedValue = map['description']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
    edgeLocations: (() { final guardedValue = map['edgeLocations']; if (guardedValue == null) return null; return pulumi.Input.fromValue((guardedValue as List).cast<String>()); })(),
    ruleNumber: pulumi.Input.fromValue((map['ruleNumber'] as num).toInt()),
  );
}