copyWith method

OnRampPaymentQuote copyWith({
  1. String? paymentMethod,
  2. int? expirationDate,
  3. String? baseCurrencyAmount,
  4. String? cryptocurrencyAmount,
  5. String? cryptocurrencyPrice,
  6. String? feeAmount,
  7. String? extraFeeAmount,
  8. String? networkFeeAmount,
  9. String? totalAmount,
})

Implementation

OnRampPaymentQuote copyWith({
  String? paymentMethod,
  int? expirationDate,
  String? baseCurrencyAmount,
  String? cryptocurrencyAmount,
  String? cryptocurrencyPrice,
  String? feeAmount,
  String? extraFeeAmount,
  String? networkFeeAmount,
  String? totalAmount,
}) =>
    OnRampPaymentQuote(
      paymentMethod: paymentMethod ?? this.paymentMethod,
      expirationDate: expirationDate ?? this.expirationDate,
      baseCurrencyAmount: baseCurrencyAmount ?? this.baseCurrencyAmount,
      cryptocurrencyAmount: cryptocurrencyAmount ?? this.cryptocurrencyAmount,
      cryptocurrencyPrice: cryptocurrencyPrice ?? this.cryptocurrencyPrice,
      feeAmount: feeAmount ?? this.feeAmount,
      extraFeeAmount: extraFeeAmount ?? this.extraFeeAmount,
      networkFeeAmount: networkFeeAmount ?? this.networkFeeAmount,
      totalAmount: totalAmount ?? this.totalAmount,
    );