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,
  10. dynamic extra,
  11. int? clientId,
})

Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.

Implementation

OnRampPaymentQuote copyWith({
  String? paymentMethod,
  int? expirationDate,
  String? baseCurrencyAmount,
  String? cryptocurrencyAmount,
  String? cryptocurrencyPrice,
  String? feeAmount,
  String? extraFeeAmount,
  String? networkFeeAmount,
  String? totalAmount,
  dynamic extra,
  int? clientId,
}) => 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,
  extra: extra ?? this.extra,
  clientId: clientId ?? this.clientId,
);