custom static method

Insertable<VersionRow> custom({
  1. Expression<String>? userId,
  2. Expression<String>? favoriteChatsListVersion,
  3. Expression<bool>? favoriteChatsSynchronized,
  4. Expression<String>? chatContactsListVersion,
  5. Expression<bool>? favoriteContactsSynchronized,
  6. Expression<bool>? contactsSynchronized,
  7. Expression<bool>? blocklistSynchronized,
  8. Expression<String>? sessionsListVersion,
  9. Expression<String>? blocklistVersion,
  10. Expression<int>? blocklistCount,
  11. Expression<int>? rowid,
})

Implementation

static Insertable<VersionRow> custom({
  Expression<String>? userId,
  Expression<String>? favoriteChatsListVersion,
  Expression<bool>? favoriteChatsSynchronized,
  Expression<String>? chatContactsListVersion,
  Expression<bool>? favoriteContactsSynchronized,
  Expression<bool>? contactsSynchronized,
  Expression<bool>? blocklistSynchronized,
  Expression<String>? sessionsListVersion,
  Expression<String>? blocklistVersion,
  Expression<int>? blocklistCount,
  Expression<int>? rowid,
}) {
  return RawValuesInsertable({
    if (userId != null) 'user_id': userId,
    if (favoriteChatsListVersion != null)
      'favorite_chats_list_version': favoriteChatsListVersion,
    if (favoriteChatsSynchronized != null)
      'favorite_chats_synchronized': favoriteChatsSynchronized,
    if (chatContactsListVersion != null)
      'chat_contacts_list_version': chatContactsListVersion,
    if (favoriteContactsSynchronized != null)
      'favorite_contacts_synchronized': favoriteContactsSynchronized,
    if (contactsSynchronized != null)
      'contacts_synchronized': contactsSynchronized,
    if (blocklistSynchronized != null)
      'blocklist_synchronized': blocklistSynchronized,
    if (sessionsListVersion != null)
      'sessions_list_version': sessionsListVersion,
    if (blocklistVersion != null) 'blocklist_version': blocklistVersion,
    if (blocklistCount != null) 'blocklist_count': blocklistCount,
    if (rowid != null) 'rowid': rowid,
  });
}