copyWithCompanion method
Implementation
DepartmentData copyWithCompanion(DepartmentCompanion data) {
return DepartmentData(
id: data.id.present ? data.id.value : this.id,
code: data.code.present ? data.code.value : this.code,
name: data.name.present ? data.name.value : this.name,
companyId: data.companyId.present ? data.companyId.value : this.companyId,
managerId: data.managerId.present ? data.managerId.value : this.managerId,
imagePath: data.imagePath.present ? data.imagePath.value : this.imagePath,
description: data.description.present
? data.description.value
: this.description,
);
}