PosturePolicySetPolicyConstraintOrgPolicyConstraintCustomPolicyRule.fromMap constructor
PosturePolicySetPolicyConstraintOrgPolicyConstraintCustomPolicyRule.fromMap()
Implementation
factory PosturePolicySetPolicyConstraintOrgPolicyConstraintCustomPolicyRule.fromMap(Map<String, dynamic> map) {
return PosturePolicySetPolicyConstraintOrgPolicyConstraintCustomPolicyRule(
allowAll: (() { final guardedValue = map['allowAll']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as bool); })(),
condition: (() { final guardedValue = map['condition']; if (guardedValue == null) return null; return pulumi.Input.fromValue(PosturePolicySetPolicyConstraintOrgPolicyConstraintCustomPolicyRuleCondition.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
denyAll: (() { final guardedValue = map['denyAll']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as bool); })(),
enforce: (() { final guardedValue = map['enforce']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as bool); })(),
values: (() { final guardedValue = map['values']; if (guardedValue == null) return null; return pulumi.Input.fromValue(PosturePolicySetPolicyConstraintOrgPolicyConstraintCustomPolicyRuleValues.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
);
}