custom static method

Insertable<MyUserRow> custom({
  1. Expression<String>? id,
  2. Expression<String>? num,
  3. Expression<String>? login,
  4. Expression<String>? name,
  5. Expression<String>? bio,
  6. Expression<bool>? hasPassword,
  7. Expression<String>? emails,
  8. Expression<String>? phones,
  9. Expression<String>? chatDirectLink,
  10. Expression<int>? unreadChatsCount,
  11. Expression<String>? status,
  12. Expression<String>? avatar,
  13. Expression<String>? callCover,
  14. Expression<int>? presenceIndex,
  15. Expression<bool>? online,
  16. Expression<String>? muted,
  17. Expression<int>? blocklistCount,
  18. Expression<int>? lastSeenAt,
  19. Expression<String>? ver,
  20. Expression<String>? welcomeMessage,
  21. Expression<int>? rowid,
})

Implementation

static Insertable<MyUserRow> custom({
  Expression<String>? id,
  Expression<String>? num,
  Expression<String>? login,
  Expression<String>? name,
  Expression<String>? bio,
  Expression<bool>? hasPassword,
  Expression<String>? emails,
  Expression<String>? phones,
  Expression<String>? chatDirectLink,
  Expression<int>? unreadChatsCount,
  Expression<String>? status,
  Expression<String>? avatar,
  Expression<String>? callCover,
  Expression<int>? presenceIndex,
  Expression<bool>? online,
  Expression<String>? muted,
  Expression<int>? blocklistCount,
  Expression<int>? lastSeenAt,
  Expression<String>? ver,
  Expression<String>? welcomeMessage,
  Expression<int>? rowid,
}) {
  return RawValuesInsertable({
    if (id != null) 'id': id,
    if (num != null) 'num': num,
    if (login != null) 'login': login,
    if (name != null) 'name': name,
    if (bio != null) 'bio': bio,
    if (hasPassword != null) 'has_password': hasPassword,
    if (emails != null) 'emails': emails,
    if (phones != null) 'phones': phones,
    if (chatDirectLink != null) 'chat_direct_link': chatDirectLink,
    if (unreadChatsCount != null) 'unread_chats_count': unreadChatsCount,
    if (status != null) 'status': status,
    if (avatar != null) 'avatar': avatar,
    if (callCover != null) 'call_cover': callCover,
    if (presenceIndex != null) 'presence_index': presenceIndex,
    if (online != null) 'online': online,
    if (muted != null) 'muted': muted,
    if (blocklistCount != null) 'blocklist_count': blocklistCount,
    if (lastSeenAt != null) 'last_seen_at': lastSeenAt,
    if (ver != null) 'ver': ver,
    if (welcomeMessage != null) 'welcome_message': welcomeMessage,
    if (rowid != null) 'rowid': rowid,
  });
}