export interface Time0Model { time0id: string tdesc: string edesc: string stickTm: string hourD: number } export class MyTime0Model implements Time0Model { time0id: string tdesc: string edesc: string stickTm: string hourD: number constructor(data: Partial<Time0Model>) { this.time0id = data.time0id || "" this.tdesc = data.tdesc || "" this.edesc = data.edesc || "" this.stickTm = data.stickTm || "" this.hourD = data.hourD ?? 0 } }