copyWithWrapped method

CreditPayStubEmployee copyWithWrapped({
  1. Wrapped<CreditPayStubAddress>? address,
  2. Wrapped<String?>? name,
  3. Wrapped<String?>? maritalStatus,
  4. Wrapped<PayStubTaxpayerID>? taxpayerId,
})

Implementation

CreditPayStubEmployee copyWithWrapped(
    {Wrapped<CreditPayStubAddress>? address,
    Wrapped<String?>? name,
    Wrapped<String?>? maritalStatus,
    Wrapped<PayStubTaxpayerID>? taxpayerId}) {
  return CreditPayStubEmployee(
      address: (address != null ? address.value : this.address),
      name: (name != null ? name.value : this.name),
      maritalStatus:
          (maritalStatus != null ? maritalStatus.value : this.maritalStatus),
      taxpayerId: (taxpayerId != null ? taxpayerId.value : this.taxpayerId));
}