copyWith method

OnRampPaymentLimits copyWith({
  1. String? paymentMethod,
  2. String? baseCurrencyMinAmount,
  3. String? baseCurrencyMaxAmount,
  4. String? cryptocurrencyMinAmount,
  5. String? cryptocurrencyMaxAmount,
  6. dynamic extra,
  7. 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

OnRampPaymentLimits copyWith({
  String? paymentMethod,
  String? baseCurrencyMinAmount,
  String? baseCurrencyMaxAmount,
  String? cryptocurrencyMinAmount,
  String? cryptocurrencyMaxAmount,
  dynamic extra,
  int? clientId,
}) => OnRampPaymentLimits(
  paymentMethod: paymentMethod ?? this.paymentMethod,
  baseCurrencyMinAmount: baseCurrencyMinAmount ?? this.baseCurrencyMinAmount,
  baseCurrencyMaxAmount: baseCurrencyMaxAmount ?? this.baseCurrencyMaxAmount,
  cryptocurrencyMinAmount:
      cryptocurrencyMinAmount ?? this.cryptocurrencyMinAmount,
  cryptocurrencyMaxAmount:
      cryptocurrencyMaxAmount ?? this.cryptocurrencyMaxAmount,
  extra: extra ?? this.extra,
  clientId: clientId ?? this.clientId,
);