custom static method

Insertable<Classroom> custom({
  1. Expression<int>? id,
  2. Expression<DateTime>? fetchedAt,
  3. Expression<String>? code,
  4. Expression<String>? nameZh,
})

Implementation

static Insertable<Classroom> custom({
  Expression<int>? id,
  Expression<DateTime>? fetchedAt,
  Expression<String>? code,
  Expression<String>? nameZh,
}) {
  return RawValuesInsertable({
    if (id != null) 'id': id,
    if (fetchedAt != null) 'fetched_at': fetchedAt,
    if (code != null) 'code': code,
    if (nameZh != null) 'name_zh': nameZh,
  });
}