toCompanion method
Implementation
AppUserCompanion toCompanion(bool nullToAbsent) {
return AppUserCompanion(
id: Value(id),
userName: Value(userName),
email: Value(email),
fullName: Value(fullName),
encryptedPassword: Value(encryptedPassword),
enabled: Value(enabled),
activated: Value(activated),
accessToken: accessToken == null && nullToAbsent
? const Value.absent()
: Value(accessToken),
employeeId: employeeId == null && nullToAbsent
? const Value.absent()
: Value(employeeId),
lastActiveDatetime: lastActiveDatetime == null && nullToAbsent
? const Value.absent()
: Value(lastActiveDatetime),
isSystemUser: Value(isSystemUser),
imagePath: imagePath == null && nullToAbsent
? const Value.absent()
: Value(imagePath),
);
}