toCompanion method
Implementation
EmployeeCompanion toCompanion(bool nullToAbsent) {
return EmployeeCompanion(
id: Value(id),
empNumber: Value(empNumber),
name: Value(name),
email: Value(email),
employeePositionId: Value(employeePositionId),
departmentId: Value(departmentId),
birthday: Value(birthday),
hireDate: Value(hireDate),
imagePath: imagePath == null && nullToAbsent
? const Value.absent()
: Value(imagePath),
address: address == null && nullToAbsent
? const Value.absent()
: Value(address),
);
}