copyWith method

CreateOnRampPaymentSession copyWith({
  1. String? providerId,
  2. String? cryptocurrency,
  3. String? address,
  4. String? paymentMethodName,
  5. String? baseCurrency,
  6. String? cryptocurrencyAmount,
  7. String? baseCurrencyAmount,
  8. String? memo,
  9. String? theme,
  10. String? successReturnUrl,
  11. String? failReturnUrl,
})

Implementation

CreateOnRampPaymentSession copyWith({
  String? providerId,
  String? cryptocurrency,
  String? address,
  String? paymentMethodName,
  String? baseCurrency,
  String? cryptocurrencyAmount,
  String? baseCurrencyAmount,
  String? memo,
  String? theme,
  String? successReturnUrl,
  String? failReturnUrl,
}) =>
    CreateOnRampPaymentSession(
      providerId: providerId ?? this.providerId,
      cryptocurrency: cryptocurrency ?? this.cryptocurrency,
      address: address ?? this.address,
      paymentMethodName: paymentMethodName ?? this.paymentMethodName,
      baseCurrency: baseCurrency ?? this.baseCurrency,
      cryptocurrencyAmount: cryptocurrencyAmount ?? this.cryptocurrencyAmount,
      baseCurrencyAmount: baseCurrencyAmount ?? this.baseCurrencyAmount,
      memo: memo ?? this.memo,
      theme: theme ?? this.theme,
      successReturnUrl: successReturnUrl ?? this.successReturnUrl,
      failReturnUrl: failReturnUrl ?? this.failReturnUrl,
    );