WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatement.fromMap constructor

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

Implementation

factory WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatement.fromMap(Map<String, dynamic> map) {
  return WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatement(
    fieldToMatch: (() { final guardedValue = map['fieldToMatch']; if (guardedValue == null) return null; return pulumi.Input.fromValue(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
    positionalConstraint: pulumi.Input.fromValue(map['positionalConstraint'] as String),
    searchString: pulumi.Input.fromValue(map['searchString'] as String),
    textTransformations: (() { final guardedValue = map['textTransformations']; if (guardedValue == null) return null; return pulumi.Input.fromValue(pulumi.Input.decodeList<WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformation>(guardedValue, (value) => WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformation.fromMap((value as Map).cast<String, dynamic>()))); })(),
  );
}