copyWith method
Implementation
EmploymentHistoryData copyWith({
int? id,
int? employeeId,
int? employeePositionId,
int? departmentId,
int? companyId,
DateTime? fromDate,
DateTime? toDate,
}) => EmploymentHistoryData(
id: id ?? this.id,
employeeId: employeeId ?? this.employeeId,
employeePositionId: employeePositionId ?? this.employeePositionId,
departmentId: departmentId ?? this.departmentId,
companyId: companyId ?? this.companyId,
fromDate: fromDate ?? this.fromDate,
toDate: toDate ?? this.toDate,
);