Validation.fromMap constructor
Implementation
factory Validation.fromMap(Map<String, dynamic> map) {
return Validation(
conditionalOn: map['conditionalOn'] != null
? ConditionalOn.fromMap(map['conditionalOn'])
: null,
required: map['required'],
message: map['message'],
regex: map['regex'] != null ? Regex.fromMap(map['regex']) : null,
minLength: map['minLength'],
maxLength: map['maxLength'],
min: map['min'],
max: map['max'],
);
}