toCompanion method
- bool nullToAbsent
Implementation
DepartmentsCompanion toCompanion(bool nullToAbsent) {
return DepartmentsCompanion(
id: Value(id),
fetchedAt: fetchedAt == null && nullToAbsent
? const Value.absent()
: Value(fetchedAt),
code: Value(code),
nameZh: Value(nameZh),
);
}