Creates a Data Transfer Object (DTO) class with a Zod schema for validation.
Zod object schema for the DTO.
A DTO class with validation.
Creates a Data Transfer Object (DTO) class with a Zod schema for validation.
Zod raw shape for the DTO.
A DTO class with validation.
Creates a Data Transfer Object (DTO) class with a Zod schema for validation.
Param: shapeOrSchema
Zod raw shape or schema for the DTO.
Returns
A DTO class with validation.