WebAclRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatement.fromMap constructor

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

Implementation

factory WebAclRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatement.fromMap(Map<String, dynamic> map) {
  return WebAclRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatement(
    fieldToMatch: (() { final guardedValue = map['fieldToMatch']; if (guardedValue == null) return null; return pulumi.Input.fromValue(WebAclRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatch.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
    regexString: pulumi.Input.fromValue(map['regexString'] as String),
    textTransformations: (() { final guardedValue = map['textTransformations']; if (guardedValue == null) return null; return pulumi.Input.fromValue(pulumi.Input.decodeList<WebAclRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformation>(guardedValue, (value) => WebAclRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformation.fromMap((value as Map).cast<String, dynamic>()))); })(),
  );
}