custom static method

Insertable<CourseOffering> custom({
  1. Expression<int>? id,
  2. Expression<DateTime>? fetchedAt,
  3. Expression<int>? course,
  4. Expression<int>? semester,
  5. Expression<String>? number,
  6. Expression<int>? phase,
  7. Expression<String>? courseType,
  8. Expression<String>? status,
  9. Expression<String>? language,
  10. Expression<String>? remarks,
  11. Expression<int>? enrolled,
  12. Expression<int>? withdrawn,
  13. Expression<String>? syllabusId,
  14. Expression<DateTime>? syllabusUpdatedAt,
  15. Expression<String>? objective,
  16. Expression<String>? weeklyPlan,
  17. Expression<String>? evaluation,
  18. Expression<String>? textbooks,
})

Implementation

static Insertable<CourseOffering> custom({
  Expression<int>? id,
  Expression<DateTime>? fetchedAt,
  Expression<int>? course,
  Expression<int>? semester,
  Expression<String>? number,
  Expression<int>? phase,
  Expression<String>? courseType,
  Expression<String>? status,
  Expression<String>? language,
  Expression<String>? remarks,
  Expression<int>? enrolled,
  Expression<int>? withdrawn,
  Expression<String>? syllabusId,
  Expression<DateTime>? syllabusUpdatedAt,
  Expression<String>? objective,
  Expression<String>? weeklyPlan,
  Expression<String>? evaluation,
  Expression<String>? textbooks,
}) {
  return RawValuesInsertable({
    if (id != null) 'id': id,
    if (fetchedAt != null) 'fetched_at': fetchedAt,
    if (course != null) 'course': course,
    if (semester != null) 'semester': semester,
    if (number != null) 'number': number,
    if (phase != null) 'phase': phase,
    if (courseType != null) 'course_type': courseType,
    if (status != null) 'status': status,
    if (language != null) 'language': language,
    if (remarks != null) 'remarks': remarks,
    if (enrolled != null) 'enrolled': enrolled,
    if (withdrawn != null) 'withdrawn': withdrawn,
    if (syllabusId != null) 'syllabus_id': syllabusId,
    if (syllabusUpdatedAt != null) 'syllabus_updated_at': syllabusUpdatedAt,
    if (objective != null) 'objective': objective,
    if (weeklyPlan != null) 'weekly_plan': weeklyPlan,
    if (evaluation != null) 'evaluation': evaluation,
    if (textbooks != null) 'textbooks': textbooks,
  });
}