custom static method

Insertable<UserRow> custom({
  1. Expression<String>? id,
  2. Expression<String>? num,
  3. Expression<String>? name,
  4. Expression<String>? bio,
  5. Expression<String>? avatar,
  6. Expression<String>? callCover,
  7. Expression<int>? mutualContactsCount,
  8. Expression<bool>? online,
  9. Expression<int>? presenceIndex,
  10. Expression<String>? status,
  11. Expression<bool>? isDeleted,
  12. Expression<String>? dialog,
  13. Expression<String>? isBlocked,
  14. Expression<int>? lastSeenAt,
  15. Expression<String>? contacts,
  16. Expression<String>? ver,
  17. Expression<String>? blockedVer,
  18. Expression<String>? welcomeMessage,
  19. Expression<int>? rowid,
})

Implementation

static Insertable<UserRow> custom({
  Expression<String>? id,
  Expression<String>? num,
  Expression<String>? name,
  Expression<String>? bio,
  Expression<String>? avatar,
  Expression<String>? callCover,
  Expression<int>? mutualContactsCount,
  Expression<bool>? online,
  Expression<int>? presenceIndex,
  Expression<String>? status,
  Expression<bool>? isDeleted,
  Expression<String>? dialog,
  Expression<String>? isBlocked,
  Expression<int>? lastSeenAt,
  Expression<String>? contacts,
  Expression<String>? ver,
  Expression<String>? blockedVer,
  Expression<String>? welcomeMessage,
  Expression<int>? rowid,
}) {
  return RawValuesInsertable({
    if (id != null) 'id': id,
    if (num != null) 'num': num,
    if (name != null) 'name': name,
    if (bio != null) 'bio': bio,
    if (avatar != null) 'avatar': avatar,
    if (callCover != null) 'call_cover': callCover,
    if (mutualContactsCount != null)
      'mutual_contacts_count': mutualContactsCount,
    if (online != null) 'online': online,
    if (presenceIndex != null) 'presence_index': presenceIndex,
    if (status != null) 'status': status,
    if (isDeleted != null) 'is_deleted': isDeleted,
    if (dialog != null) 'dialog': dialog,
    if (isBlocked != null) 'is_blocked': isBlocked,
    if (lastSeenAt != null) 'last_seen_at': lastSeenAt,
    if (contacts != null) 'contacts': contacts,
    if (ver != null) 'ver': ver,
    if (blockedVer != null) 'blocked_ver': blockedVer,
    if (welcomeMessage != null) 'welcome_message': welcomeMessage,
    if (rowid != null) 'rowid': rowid,
  });
}