custom static method

Insertable<AlbumData> custom({
  1. Expression<int>? id,
  2. Expression<String>? code,
  3. Expression<String>? name,
  4. Expression<String>? nameInEnglish,
  5. Expression<int>? seqNum,
  6. Expression<bool>? published,
  7. Expression<bool>? locked,
  8. Expression<String>? imagePath,
  9. Expression<int>? publishedSongCount,
  10. Expression<int>? totalSongCount,
  11. Expression<String>? description,
  12. Expression<String>? note,
})

Implementation

static Insertable<AlbumData> custom({
  Expression<int>? id,
  Expression<String>? code,
  Expression<String>? name,
  Expression<String>? nameInEnglish,
  Expression<int>? seqNum,
  Expression<bool>? published,
  Expression<bool>? locked,
  Expression<String>? imagePath,
  Expression<int>? publishedSongCount,
  Expression<int>? totalSongCount,
  Expression<String>? description,
  Expression<String>? note,
}) {
  return RawValuesInsertable({
    if (id != null) 'id': id,
    if (code != null) 'code': code,
    if (name != null) 'name': name,
    if (nameInEnglish != null) 'name_in_english': nameInEnglish,
    if (seqNum != null) 'seq_num': seqNum,
    if (published != null) 'published': published,
    if (locked != null) 'locked': locked,
    if (imagePath != null) 'image_path': imagePath,
    if (publishedSongCount != null)
      'published_song_count': publishedSongCount,
    if (totalSongCount != null) 'total_song_count': totalSongCount,
    if (description != null) 'description': description,
    if (note != null) 'note': note,
  });
}