copyWithWrapped method
PayStubPayPeriodDetails
copyWithWrapped({
- Wrapped<
double?> ? payAmount, - Wrapped<
List< ? distributionBreakdown,PayStubDistributionBreakdown> > - Wrapped<
DateTime?> ? endDate, - Wrapped<
double?> ? grossEarnings, - Wrapped<
String?> ? isoCurrencyCode, - Wrapped<
DateTime?> ? payDate, - Wrapped<
String?> ? payFrequency, - Wrapped<
DateTime?> ? startDate, - Wrapped<
String?> ? unofficialCurrencyCode,
Implementation
PayStubPayPeriodDetails copyWithWrapped(
{Wrapped<double?>? payAmount,
Wrapped<List<PayStubDistributionBreakdown>>? distributionBreakdown,
Wrapped<DateTime?>? endDate,
Wrapped<double?>? grossEarnings,
Wrapped<String?>? isoCurrencyCode,
Wrapped<DateTime?>? payDate,
Wrapped<String?>? payFrequency,
Wrapped<DateTime?>? startDate,
Wrapped<String?>? unofficialCurrencyCode}) {
return PayStubPayPeriodDetails(
payAmount: (payAmount != null ? payAmount.value : this.payAmount),
distributionBreakdown: (distributionBreakdown != null
? distributionBreakdown.value
: this.distributionBreakdown),
endDate: (endDate != null ? endDate.value : this.endDate),
grossEarnings:
(grossEarnings != null ? grossEarnings.value : this.grossEarnings),
isoCurrencyCode: (isoCurrencyCode != null
? isoCurrencyCode.value
: this.isoCurrencyCode),
payDate: (payDate != null ? payDate.value : this.payDate),
payFrequency:
(payFrequency != null ? payFrequency.value : this.payFrequency),
startDate: (startDate != null ? startDate.value : this.startDate),
unofficialCurrencyCode: (unofficialCurrencyCode != null
? unofficialCurrencyCode.value
: this.unofficialCurrencyCode));
}