toCompanion method

ChatItemsCompanion toCompanion(
  1. bool nullToAbsent
)

Implementation

ChatItemsCompanion toCompanion(bool nullToAbsent) {
  return ChatItemsCompanion(
    id: Value(id),
    chatId: Value(chatId),
    authorId: Value(authorId),
    at: Value(at),
    status: Value(status),
    data: Value(data),
    cursor:
        cursor == null && nullToAbsent ? const Value.absent() : Value(cursor),
    ver: Value(ver),
  );
}