RuleGroupRuleStatementByteMatchStatement.fromMap constructor
RuleGroupRuleStatementByteMatchStatement.fromMap(
- Map<String, dynamic> map
)
Implementation
factory RuleGroupRuleStatementByteMatchStatement.fromMap(Map<String, dynamic> map) {
return RuleGroupRuleStatementByteMatchStatement(
fieldToMatch: (() { final guardedValue = map['fieldToMatch']; if (guardedValue == null) return null; return pulumi.Input.fromValue(RuleGroupRuleStatementByteMatchStatementFieldToMatch.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
positionalConstraint: pulumi.Input.fromValue(map['positionalConstraint'] as String),
preParseTextTransformations: (() { final guardedValue = map['preParseTextTransformations']; if (guardedValue == null) return null; return pulumi.Input.fromValue(pulumi.Input.decodeList<RuleGroupRuleStatementByteMatchStatementPreParseTextTransformation>(guardedValue, (value) => RuleGroupRuleStatementByteMatchStatementPreParseTextTransformation.fromMap((value as Map).cast<String, dynamic>()))); })(),
searchString: pulumi.Input.fromValue(map['searchString'] as String),
textTransformations: pulumi.Input.fromValue(pulumi.Input.decodeList<RuleGroupRuleStatementByteMatchStatementTextTransformation>(map['textTransformations']!, (value) => RuleGroupRuleStatementByteMatchStatementTextTransformation.fromMap((value as Map).cast<String, dynamic>()))),
);
}