SizeConstraintStatement.fromJson constructor
SizeConstraintStatement.fromJson(
- Map<String, dynamic> json
)
Implementation
factory SizeConstraintStatement.fromJson(Map<String, dynamic> json) {
return SizeConstraintStatement(
comparisonOperator:
(json['ComparisonOperator'] as String).toComparisonOperator(),
fieldToMatch:
FieldToMatch.fromJson(json['FieldToMatch'] as Map<String, dynamic>),
size: json['Size'] as int,
textTransformations: (json['TextTransformations'] as List)
.whereNotNull()
.map((e) => TextTransformation.fromJson(e as Map<String, dynamic>))
.toList(),
);
}