copyWith method

PaymentAmount copyWith({
  1. PaymentAmountCurrency? currency,
  2. double? value,
})

Implementation

PaymentAmount copyWith(
    {enums.PaymentAmountCurrency? currency, double? value}) {
  return PaymentAmount(
      currency: currency ?? this.currency, value: value ?? this.value);
}