toMap method
Implementation
Map<String, dynamic> toMap() {
return {
'conditionalOn': conditionalOn?.toMap(),
'required': required,
'message': message,
'regex': regex?.toMap(),
'minLength': minLength,
'maxLength': maxLength,
'min': min,
'max': max,
};
}