copyWith method

PaymentSettings copyWith({
  1. String? successUrl,
  2. String? failUrl,
  3. String? recurFreq,
  4. String? recurExp,
  5. String? terminalId,
})

Implementation

PaymentSettings copyWith(
    {String? successUrl,
    String? failUrl,
    String? recurFreq,
    String? recurExp,
    String? terminalId}) {
  return PaymentSettings(
    successUrl: successUrl ?? this.successUrl,
    failUrl: failUrl ?? this.failUrl,
    recurFreq: recurFreq ?? this.recurFreq,
    recurExp: recurExp ?? this.recurExp,
    terminalId: terminalId ?? this.terminalId,
  );
}