copyWith method
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,
);