copyWithWrapped method

PaymentAmount copyWithWrapped({
  1. Wrapped<PaymentAmountCurrency>? currency,
  2. Wrapped<double>? value,
})

Implementation

PaymentAmount copyWithWrapped(
    {Wrapped<enums.PaymentAmountCurrency>? currency,
    Wrapped<double>? value}) {
  return PaymentAmount(
      currency: (currency != null ? currency.value : this.currency),
      value: (value != null ? value.value : this.value));
}