copyWith method

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

Implementation

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