copyWithWrapped method
Implementation
EarningsTotal copyWithWrapped(
{Wrapped<double?>? currentAmount,
Wrapped<Pay?>? currentPay,
Wrapped<Pay?>? ytdPay,
Wrapped<double?>? hours,
Wrapped<String?>? isoCurrencyCode,
Wrapped<String?>? unofficialCurrencyCode,
Wrapped<double?>? ytdAmount}) {
return EarningsTotal(
currentAmount:
(currentAmount != null ? currentAmount.value : this.currentAmount),
currentPay: (currentPay != null ? currentPay.value : this.currentPay),
ytdPay: (ytdPay != null ? ytdPay.value : this.ytdPay),
hours: (hours != null ? hours.value : this.hours),
isoCurrencyCode: (isoCurrencyCode != null
? isoCurrencyCode.value
: this.isoCurrencyCode),
unofficialCurrencyCode: (unofficialCurrencyCode != null
? unofficialCurrencyCode.value
: this.unofficialCurrencyCode),
ytdAmount: (ytdAmount != null ? ytdAmount.value : this.ytdAmount));
}