export interface BranchModel { branchId: string tdesc: string edesc: string } export class MyBranchModel implements BranchModel { branchId: string tdesc: string edesc: string constructor(data: Partial<BranchModel>) { this.branchId = data.branchId || "" this.tdesc = data.tdesc || "" this.edesc = data.edesc || "" } }