copyWith method
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,
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);
}