copyWithWrapped method

PayStubEarningsTotal copyWithWrapped({
  1. Wrapped<double?>? currentAmount,
  2. Wrapped<double?>? hours,
  3. Wrapped<String?>? isoCurrencyCode,
  4. Wrapped<String?>? unofficialCurrencyCode,
  5. Wrapped<double?>? ytdAmount,
})

Implementation

PayStubEarningsTotal copyWithWrapped(
    {Wrapped<double?>? currentAmount,
    Wrapped<double?>? hours,
    Wrapped<String?>? isoCurrencyCode,
    Wrapped<String?>? unofficialCurrencyCode,
    Wrapped<double?>? ytdAmount}) {
  return PayStubEarningsTotal(
      currentAmount:
          (currentAmount != null ? currentAmount.value : this.currentAmount),
      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));
}