copyWith method
Implementation
DepartmentCompanion copyWith({
Value<int>? id,
Value<String>? code,
Value<String>? name,
Value<int>? companyId,
Value<int?>? managerId,
Value<String?>? imagePath,
Value<String?>? description,
}) {
return DepartmentCompanion(
id: id ?? this.id,
code: code ?? this.code,
name: name ?? this.name,
companyId: companyId ?? this.companyId,
managerId: managerId ?? this.managerId,
imagePath: imagePath ?? this.imagePath,
description: description ?? this.description,
);
}