RuleGroupRuleStatementXssMatchStatement.fromMap constructor

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

Implementation

factory RuleGroupRuleStatementXssMatchStatement.fromMap(Map<String, dynamic> map) {
  return RuleGroupRuleStatementXssMatchStatement(
    fieldToMatch: (() { final guardedValue = map['fieldToMatch']; if (guardedValue == null) return null; return pulumi.Input.fromValue(RuleGroupRuleStatementXssMatchStatementFieldToMatch.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
    preParseTextTransformations: (() { final guardedValue = map['preParseTextTransformations']; if (guardedValue == null) return null; return pulumi.Input.fromValue(pulumi.Input.decodeList<RuleGroupRuleStatementXssMatchStatementPreParseTextTransformation>(guardedValue, (value) => RuleGroupRuleStatementXssMatchStatementPreParseTextTransformation.fromMap((value as Map).cast<String, dynamic>()))); })(),
    textTransformations: pulumi.Input.fromValue(pulumi.Input.decodeList<RuleGroupRuleStatementXssMatchStatementTextTransformation>(map['textTransformations']!, (value) => RuleGroupRuleStatementXssMatchStatementTextTransformation.fromMap((value as Map).cast<String, dynamic>()))),
  );
}