toCompanion method
Implementation
CustomerCompanion toCompanion(bool nullToAbsent) {
return CustomerCompanion(
id: Value(id),
code: Value(code),
name: Value(name),
vip: Value(vip),
address: address == null && nullToAbsent
? const Value.absent()
: Value(address),
phone: phone == null && nullToAbsent
? const Value.absent()
: Value(phone),
email: Value(email),
imagePath: imagePath == null && nullToAbsent
? const Value.absent()
: Value(imagePath),
);
}