copyWithWrapped method
CreditPayStubEmployee
copyWithWrapped({
- Wrapped<
CreditPayStubAddress> ? address, - Wrapped<
String?> ? name, - Wrapped<
String?> ? maritalStatus, - 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));
}