toCompanion method
Implementation
UniversityCompanion toCompanion(bool nullToAbsent) {
return UniversityCompanion(
id: Value(id),
code: Value(code),
name: Value(name),
nameInEnglish: Value(nameInEnglish),
active: Value(active),
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),
);
}