toCompanion method

VersionsCompanion toCompanion(
  1. bool nullToAbsent
)

Implementation

VersionsCompanion toCompanion(bool nullToAbsent) {
  return VersionsCompanion(
    userId: Value(userId),
    favoriteChatsListVersion: favoriteChatsListVersion == null && nullToAbsent
        ? const Value.absent()
        : Value(favoriteChatsListVersion),
    favoriteChatsSynchronized:
        favoriteChatsSynchronized == null && nullToAbsent
            ? const Value.absent()
            : Value(favoriteChatsSynchronized),
    chatContactsListVersion: chatContactsListVersion == null && nullToAbsent
        ? const Value.absent()
        : Value(chatContactsListVersion),
    favoriteContactsSynchronized:
        favoriteContactsSynchronized == null && nullToAbsent
            ? const Value.absent()
            : Value(favoriteContactsSynchronized),
    contactsSynchronized: contactsSynchronized == null && nullToAbsent
        ? const Value.absent()
        : Value(contactsSynchronized),
    blocklistSynchronized: blocklistSynchronized == null && nullToAbsent
        ? const Value.absent()
        : Value(blocklistSynchronized),
    sessionsListVersion: sessionsListVersion == null && nullToAbsent
        ? const Value.absent()
        : Value(sessionsListVersion),
    blocklistVersion: blocklistVersion == null && nullToAbsent
        ? const Value.absent()
        : Value(blocklistVersion),
    blocklistCount: blocklistCount == null && nullToAbsent
        ? const Value.absent()
        : Value(blocklistCount),
  );
}