Files
webapp-dto/dto/messageresponse.dto.ts
2024-12-30 18:36:56 +01:00

12 lines
265 B
TypeScript

export class MessageResponseDTO {
constructor(partial: Partial<MessageResponseDTO>) {
this.id = partial.id;
this.value = partial.value;
if (partial.authorId) this.authorId = partial.authorId;
}
id: number;
value: string;
authorId?: string;
}