WebAclRuleStatementByteMatchStatement.fromMap constructor

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

Implementation

factory WebAclRuleStatementByteMatchStatement.fromMap(Map<String, dynamic> map) {
  return WebAclRuleStatementByteMatchStatement(
    fieldToMatch: (() { final guardedValue = map['fieldToMatch']; if (guardedValue == null) return null; return pulumi.Input.fromValue(WebAclRuleStatementByteMatchStatementFieldToMatch.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<WebAclRuleStatementByteMatchStatementTextTransformation>(guardedValue, (value) => WebAclRuleStatementByteMatchStatementTextTransformation.fromMap((value as Map).cast<String, dynamic>()))); })(),
  );
}