toCompanion method
Implementation
BookCompanion toCompanion(bool nullToAbsent) {
return BookCompanion(
id: Value(id),
code: Value(code),
title: Value(title),
seqNum: Value(seqNum),
published: Value(published),
locked: Value(locked),
imagePath: imagePath == null && nullToAbsent
? const Value.absent()
: Value(imagePath),
description: description == null && nullToAbsent
? const Value.absent()
: Value(description),
note: note == null && nullToAbsent ? const Value.absent() : Value(note),
);
}