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