RuleGroupRuleGroupRulesSource.fromMap constructor

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

Implementation

factory RuleGroupRuleGroupRulesSource.fromMap(Map<String, dynamic> map) {
  return RuleGroupRuleGroupRulesSource(
    rulesSourceList: (() { final guardedValue = map['rulesSourceList']; if (guardedValue == null) return null; return pulumi.Input.fromValue(RuleGroupRuleGroupRulesSourceRulesSourceList.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
    rulesString: (() { final guardedValue = map['rulesString']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
    statefulRules: (() { final guardedValue = map['statefulRules']; if (guardedValue == null) return null; return pulumi.Input.fromValue(pulumi.Input.decodeList<RuleGroupRuleGroupRulesSourceStatefulRule>(guardedValue, (value) => RuleGroupRuleGroupRulesSourceStatefulRule.fromMap((value as Map).cast<String, dynamic>()))); })(),
    statelessRulesAndCustomActions: (() { final guardedValue = map['statelessRulesAndCustomActions']; if (guardedValue == null) return null; return pulumi.Input.fromValue(RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActions.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
  );
}