UValidationRules.fromJson constructor
UValidationRules.fromJson(
- Map<String, dynamic> json
)
Implementation
factory UValidationRules.fromJson(Map<String, dynamic> json) => UValidationRules(
minLength: json["minLength"],
maxLength: json["maxLength"],
min: json["min"],
max: json["max"],
exactLength: json["exactLength"],
regexPattern: json["regexPattern"],
regexErrorMessage: json["regexErrorMessage"],
matchField: json["matchField"],
customErrorMessage: json["customErrorMessage"],
customValidatorFunction: json["customValidatorFunction"],
minDate: json["minDate"],
maxDate: json["maxDate"],
disableFutureDates: json["disableFutureDates"] ?? false,
disablePastDates: json["disablePastDates"] ?? false,
);