Files
webapp-dto/dto/conceptresponse.dto.ts
T
2025-01-13 22:14:45 +01:00

23 lines
528 B
TypeScript

import { ApiRequestTimeoutResponse } from '@nestjs/swagger';
export class ConceptResponseDTO {
constructor(partial: Partial<ConceptResponseDTO>) {
this.id = partial.id;
this.value = partial.value;
this.type = new ConceptTypeResponseDTO(partial.type);
}
id: number;
value: string;
type: ConceptTypeResponseDTO;
}
export class ConceptTypeResponseDTO {
constructor(partial: Partial<ConceptTypeResponseDTO>) {
this.id = partial.id;
this.value = partial.value;
}
id: number;
value: string;
}