RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatement.fromMap constructor

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

Implementation

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