toCompanion method
Implementation
CalendarEventsCompanion toCompanion(bool nullToAbsent) {
return CalendarEventsCompanion(
id: Value(id),
portalId: Value(portalId),
start: start == null && nullToAbsent
? const Value.absent()
: Value(start),
end: end == null && nullToAbsent ? const Value.absent() : Value(end),
allDay: Value(allDay),
title: title == null && nullToAbsent
? const Value.absent()
: Value(title),
place: place == null && nullToAbsent
? const Value.absent()
: Value(place),
content: content == null && nullToAbsent
? const Value.absent()
: Value(content),
ownerName: ownerName == null && nullToAbsent
? const Value.absent()
: Value(ownerName),
creatorName: creatorName == null && nullToAbsent
? const Value.absent()
: Value(creatorName),
);
}