copyWithWrapped method
Implementation
PaystubDetails copyWithWrapped(
{Wrapped<DateTime?>? payPeriodStartDate,
Wrapped<DateTime?>? payPeriodEndDate,
Wrapped<DateTime?>? payDate,
Wrapped<String?>? paystubProvider,
Wrapped<enums.PaystubPayFrequency?>? payFrequency}) {
return PaystubDetails(
payPeriodStartDate: (payPeriodStartDate != null
? payPeriodStartDate.value
: this.payPeriodStartDate),
payPeriodEndDate: (payPeriodEndDate != null
? payPeriodEndDate.value
: this.payPeriodEndDate),
payDate: (payDate != null ? payDate.value : this.payDate),
paystubProvider: (paystubProvider != null
? paystubProvider.value
: this.paystubProvider),
payFrequency:
(payFrequency != null ? payFrequency.value : this.payFrequency));
}