Files
WTP-dto/dto/wordresponse.dto.ts
T
2025-05-06 12:42:05 +00:00

19 lines
399 B
TypeScript

export class WordResponseDTO {
constructor(partial: Partial<WordResponseDTO>) {
if (partial.id) this.id = partial.id;
if (partial.value) this.value = partial.value;
if (partial.ownerId) this.ownerId = partial.ownerId;
if (partial.enabled) this.enabled = partial.enabled;
}
id: number;
value: string;
ownerId: string;
enabled: boolean;
loading?: boolean = false;
}