custom static method

Insertable<DepartmentData> custom({
  1. Expression<int>? id,
  2. Expression<String>? code,
  3. Expression<String>? name,
  4. Expression<int>? companyId,
  5. Expression<int>? managerId,
  6. Expression<String>? imagePath,
  7. Expression<String>? description,
})

Implementation

static Insertable<DepartmentData> custom({
  Expression<int>? id,
  Expression<String>? code,
  Expression<String>? name,
  Expression<int>? companyId,
  Expression<int>? managerId,
  Expression<String>? imagePath,
  Expression<String>? description,
}) {
  return RawValuesInsertable({
    if (id != null) 'id': id,
    if (code != null) 'code': code,
    if (name != null) 'name': name,
    if (companyId != null) 'company_id': companyId,
    if (managerId != null) 'manager_id': managerId,
    if (imagePath != null) 'image_path': imagePath,
    if (description != null) 'description': description,
  });
}