copyWithWrapped method

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

Implementation

DeductionsTotal copyWithWrapped(
    {Wrapped<double?>? currentAmount,
    Wrapped<String?>? isoCurrencyCode,
    Wrapped<String?>? unofficialCurrencyCode,
    Wrapped<double?>? ytdAmount}) {
  return DeductionsTotal(
      currentAmount:
          (currentAmount != null ? currentAmount.value : this.currentAmount),
      isoCurrencyCode: (isoCurrencyCode != null
          ? isoCurrencyCode.value
          : this.isoCurrencyCode),
      unofficialCurrencyCode: (unofficialCurrencyCode != null
          ? unofficialCurrencyCode.value
          : this.unofficialCurrencyCode),
      ytdAmount: (ytdAmount != null ? ytdAmount.value : this.ytdAmount));
}