toJson method

  1. @override
Map<String, Object?> toJson()
override

Implementation

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