SizeConstraint.fromJson constructor

SizeConstraint.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory SizeConstraint.fromJson(Map<String, dynamic> json) {
  return SizeConstraint(
    comparisonOperator:
        (json['ComparisonOperator'] as String).toComparisonOperator(),
    fieldToMatch:
        FieldToMatch.fromJson(json['FieldToMatch'] as Map<String, dynamic>),
    size: json['Size'] as int,
    textTransformation:
        (json['TextTransformation'] as String).toTextTransformation(),
  );
}