copyWith method

EmploymentHistoryData copyWith({
  1. int? id,
  2. int? employeeId,
  3. int? employeePositionId,
  4. int? departmentId,
  5. int? companyId,
  6. DateTime? fromDate,
  7. DateTime? toDate,
})

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,
);