import { Attr } from 'ts-framework' export class CreateColorDTO { @Attr({ type: String }) name: string } export class ColorResponseDTO { id: string name: string constructor(model: ColorResponseDTO) { this.id = model.id this.name = model.name } static of(model: ColorResponseDTO): ColorResponseDTO { return new ColorResponseDTO(model) } }