import { JsonProperty } from "@tsed/common"; import { Staff } from '../entity/Staff'; export class StaffUpdate { toStaff(): Staff { const staff = new Staff() staff.name = this.name staff.avatar = this.avatar staff.phone = this.phone staff.email = this.email staff.isBlock = this.isBlock return staff } // PROPERTIES @JsonProperty() name: string; @JsonProperty() avatar: string; @JsonProperty() phone: string; @JsonProperty() email: string; @JsonProperty() isBlock: boolean; } // END FILE