export interface Bu2Model { bu2id: string; tdesc: string; edesc: string; parent: string; companyId: string; } export class MyBu2Model implements Bu2Model { bu2id: string; tdesc: string; edesc: string; parent: string; companyId: string; constructor(data?: Partial<Bu2Model>) { this.bu2id = data?.bu2id || "" this.tdesc = data?.tdesc || "" this.edesc = data?.edesc || "" this.parent = data?.parent || "" this.companyId = data?.companyId || "" } }