custom static method

Insertable<Syllabus> custom({
  1. Expression<int>? id,
  2. Expression<int>? courseOffering,
  3. Expression<int>? teacher,
  4. Expression<String>? language,
  5. Expression<DateTime>? updatedAt,
  6. Expression<DateTime>? fetchedAt,
})

Implementation

static Insertable<Syllabus> custom({
  Expression<int>? id,
  Expression<int>? courseOffering,
  Expression<int>? teacher,
  Expression<String>? language,
  Expression<DateTime>? updatedAt,
  Expression<DateTime>? fetchedAt,
}) {
  return RawValuesInsertable({
    if (id != null) 'id': id,
    if (courseOffering != null) 'course_offering': courseOffering,
    if (teacher != null) 'teacher': teacher,
    if (language != null) 'language': language,
    if (updatedAt != null) 'updated_at': updatedAt,
    if (fetchedAt != null) 'fetched_at': fetchedAt,
  });
}