copyWithWrapped method
      
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< ? box12,W2Box12> >
- Wrapped<String?> ? statutoryEmployee,
- Wrapped<String?> ? retirementPlan,
- Wrapped<String?> ? thirdPartySickPay,
- Wrapped<String?> ? other,
- Wrapped<List< ? stateAndLocalWages,W2StateAndLocalWages> >
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));
}