copyWithWrapped method

CreditW2 copyWithWrapped({
  1. Wrapped<CreditDocumentMetadata>? documentMetadata,
  2. Wrapped<String>? documentId,
  3. Wrapped<CreditPayStubEmployer>? employer,
  4. Wrapped<CreditPayStubEmployee>? employee,
  5. Wrapped<String?>? taxYear,
  6. Wrapped<String?>? employerIdNumber,
  7. Wrapped<String?>? wagesTipsOtherComp,
  8. Wrapped<String?>? federalIncomeTaxWithheld,
  9. Wrapped<String?>? socialSecurityWages,
  10. Wrapped<String?>? socialSecurityTaxWithheld,
  11. Wrapped<String?>? medicareWagesAndTips,
  12. Wrapped<String?>? medicareTaxWithheld,
  13. Wrapped<String?>? socialSecurityTips,
  14. Wrapped<String?>? allocatedTips,
  15. Wrapped<String?>? box9,
  16. Wrapped<String?>? dependentCareBenefits,
  17. Wrapped<String?>? nonqualifiedPlans,
  18. Wrapped<List<W2Box12>>? box12,
  19. Wrapped<String?>? statutoryEmployee,
  20. Wrapped<String?>? retirementPlan,
  21. Wrapped<String?>? thirdPartySickPay,
  22. Wrapped<String?>? other,
  23. Wrapped<List<W2StateAndLocalWages>>? stateAndLocalWages,
})

Implementation

CreditW2 copyWithWrapped(
    {Wrapped<CreditDocumentMetadata>? documentMetadata,
    Wrapped<String>? documentId,
    Wrapped<CreditPayStubEmployer>? employer,
    Wrapped<CreditPayStubEmployee>? employee,
    Wrapped<String?>? taxYear,
    Wrapped<String?>? employerIdNumber,
    Wrapped<String?>? wagesTipsOtherComp,
    Wrapped<String?>? federalIncomeTaxWithheld,
    Wrapped<String?>? socialSecurityWages,
    Wrapped<String?>? socialSecurityTaxWithheld,
    Wrapped<String?>? medicareWagesAndTips,
    Wrapped<String?>? medicareTaxWithheld,
    Wrapped<String?>? socialSecurityTips,
    Wrapped<String?>? allocatedTips,
    Wrapped<String?>? box9,
    Wrapped<String?>? dependentCareBenefits,
    Wrapped<String?>? nonqualifiedPlans,
    Wrapped<List<W2Box12>>? box12,
    Wrapped<String?>? statutoryEmployee,
    Wrapped<String?>? retirementPlan,
    Wrapped<String?>? thirdPartySickPay,
    Wrapped<String?>? other,
    Wrapped<List<W2StateAndLocalWages>>? stateAndLocalWages}) {
  return CreditW2(
      documentMetadata: (documentMetadata != null
          ? documentMetadata.value
          : this.documentMetadata),
      documentId: (documentId != null ? documentId.value : this.documentId),
      employer: (employer != null ? employer.value : this.employer),
      employee: (employee != null ? employee.value : this.employee),
      taxYear: (taxYear != null ? taxYear.value : this.taxYear),
      employerIdNumber: (employerIdNumber != null
          ? employerIdNumber.value
          : this.employerIdNumber),
      wagesTipsOtherComp: (wagesTipsOtherComp != null
          ? wagesTipsOtherComp.value
          : this.wagesTipsOtherComp),
      federalIncomeTaxWithheld: (federalIncomeTaxWithheld != null
          ? federalIncomeTaxWithheld.value
          : this.federalIncomeTaxWithheld),
      socialSecurityWages: (socialSecurityWages != null
          ? socialSecurityWages.value
          : this.socialSecurityWages),
      socialSecurityTaxWithheld: (socialSecurityTaxWithheld != null
          ? socialSecurityTaxWithheld.value
          : this.socialSecurityTaxWithheld),
      medicareWagesAndTips: (medicareWagesAndTips != null
          ? medicareWagesAndTips.value
          : this.medicareWagesAndTips),
      medicareTaxWithheld: (medicareTaxWithheld != null
          ? medicareTaxWithheld.value
          : this.medicareTaxWithheld),
      socialSecurityTips: (socialSecurityTips != null
          ? socialSecurityTips.value
          : this.socialSecurityTips),
      allocatedTips:
          (allocatedTips != null ? allocatedTips.value : this.allocatedTips),
      box9: (box9 != null ? box9.value : this.box9),
      dependentCareBenefits: (dependentCareBenefits != null
          ? dependentCareBenefits.value
          : this.dependentCareBenefits),
      nonqualifiedPlans: (nonqualifiedPlans != null
          ? nonqualifiedPlans.value
          : this.nonqualifiedPlans),
      box12: (box12 != null ? box12.value : this.box12),
      statutoryEmployee: (statutoryEmployee != null
          ? statutoryEmployee.value
          : this.statutoryEmployee),
      retirementPlan: (retirementPlan != null
          ? retirementPlan.value
          : this.retirementPlan),
      thirdPartySickPay: (thirdPartySickPay != null
          ? thirdPartySickPay.value
          : this.thirdPartySickPay),
      other: (other != null ? other.value : this.other),
      stateAndLocalWages: (stateAndLocalWages != null
          ? stateAndLocalWages.value
          : this.stateAndLocalWages));
}