toJson method
Implementation
@override
Map<String, Object?> toJson() {
return {
ValidaField.variantTypeString: variantType.toString(),
'minLength': minLength,
'maxLength': maxLength,
'each': each?.toJson(),
'customValidate': customValidateName,
};
}