RuleGroupRuleStatementSizeConstraintStatement.fromMap constructor
RuleGroupRuleStatementSizeConstraintStatement.fromMap(
- Map<String, dynamic> map
)
Implementation
factory RuleGroupRuleStatementSizeConstraintStatement.fromMap(Map<String, dynamic> map) {
return RuleGroupRuleStatementSizeConstraintStatement(
comparisonOperator: pulumi.Input.fromValue(map['comparisonOperator'] as String),
fieldToMatch: (() { final guardedValue = map['fieldToMatch']; if (guardedValue == null) return null; return pulumi.Input.fromValue(RuleGroupRuleStatementSizeConstraintStatementFieldToMatch.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
preParseTextTransformations: (() { final guardedValue = map['preParseTextTransformations']; if (guardedValue == null) return null; return pulumi.Input.fromValue(pulumi.Input.decodeList<RuleGroupRuleStatementSizeConstraintStatementPreParseTextTransformation>(guardedValue, (value) => RuleGroupRuleStatementSizeConstraintStatementPreParseTextTransformation.fromMap((value as Map).cast<String, dynamic>()))); })(),
size: pulumi.Input.fromValue((map['size'] as num).toInt()),
textTransformations: pulumi.Input.fromValue(pulumi.Input.decodeList<RuleGroupRuleStatementSizeConstraintStatementTextTransformation>(map['textTransformations']!, (value) => RuleGroupRuleStatementSizeConstraintStatementTextTransformation.fromMap((value as Map).cast<String, dynamic>()))),
);
}