ValidationRules.fromJson constructor

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

Implementation

factory ValidationRules.fromJson(Map<String, dynamic> json) => ValidationRules(
  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,
);