toCompanion method
Implementation
DepartmentCompanion toCompanion(bool nullToAbsent) {
return DepartmentCompanion(
id: Value(id),
code: Value(code),
name: Value(name),
companyId: Value(companyId),
managerId: managerId == null && nullToAbsent
? const Value.absent()
: Value(managerId),
imagePath: imagePath == null && nullToAbsent
? const Value.absent()
: Value(imagePath),
description: description == null && nullToAbsent
? const Value.absent()
: Value(description),
);
}