copyWithWrapped method
Implementation
EmploymentDetails copyWithWrapped(
{Wrapped<Pay?>? annualSalary, Wrapped<DateTime?>? hireDate}) {
return EmploymentDetails(
annualSalary:
(annualSalary != null ? annualSalary.value : this.annualSalary),
hireDate: (hireDate != null ? hireDate.value : this.hireDate));
}