custom static method

Insertable<Teacher> custom({
  1. Expression<int>? id,
  2. Expression<DateTime>? fetchedAt,
  3. Expression<String>? code,
  4. Expression<int>? semester,
  5. Expression<String>? nameZh,
  6. Expression<String>? nameEn,
  7. Expression<String>? email,
  8. Expression<int>? department,
  9. Expression<String>? title,
  10. Expression<double>? teachingHours,
  11. Expression<String>? officeHoursNote,
})

Implementation

static Insertable<Teacher> custom({
  Expression<int>? id,
  Expression<DateTime>? fetchedAt,
  Expression<String>? code,
  Expression<int>? semester,
  Expression<String>? nameZh,
  Expression<String>? nameEn,
  Expression<String>? email,
  Expression<int>? department,
  Expression<String>? title,
  Expression<double>? teachingHours,
  Expression<String>? officeHoursNote,
}) {
  return RawValuesInsertable({
    if (id != null) 'id': id,
    if (fetchedAt != null) 'fetched_at': fetchedAt,
    if (code != null) 'code': code,
    if (semester != null) 'semester': semester,
    if (nameZh != null) 'name_zh': nameZh,
    if (nameEn != null) 'name_en': nameEn,
    if (email != null) 'email': email,
    if (department != null) 'department': department,
    if (title != null) 'title': title,
    if (teachingHours != null) 'teaching_hours': teachingHours,
    if (officeHoursNote != null) 'office_hours_note': officeHoursNote,
  });
}