copyWith method

CheckoutPayment copyWith({
  1. bool? failure,
  2. String? message,
  3. String? redirectUrl,
  4. String? thankyouUrl,
  5. String? method,
  6. String? storeCode,
  7. String? channelCode,
  8. String? checkoutUrl,
  9. String? channelName,
  10. String? reqChannelCode,
  11. PaymentParameter? parameter,
  12. PaymentPageType? type,
  13. PaymentVybeResult? vybeResult,
})

Implementation

CheckoutPayment copyWith({
  bool? failure,
  String? message,
  String? redirectUrl,
  String? thankyouUrl,
  String? method,
  String? storeCode,
  String? channelCode,
  String? checkoutUrl,
  String? channelName,
  String? reqChannelCode,
  PaymentParameter? parameter,
  PaymentPageType? type,
  PaymentVybeResult? vybeResult,
}) {
  return CheckoutPayment(
    failure: failure ?? this.failure,
    message: message ?? this.message,
    redirectUrl: redirectUrl ?? this.redirectUrl,
    thankyouUrl: thankyouUrl ?? this.thankyouUrl,
    method: method ?? this.method,
    storeCode: storeCode ?? this.storeCode,
    channelCode: channelCode ?? this.channelCode,
    checkoutUrl: checkoutUrl ?? this.checkoutUrl,
    channelName: channelName ?? this.channelName,
    reqChannelCode: reqChannelCode ?? this.reqChannelCode,
    parameter: parameter ?? this.parameter.copyWith(),
    type: type ?? this.type,
    vybeResult: vybeResult ?? this.vybeResult.copyWith(),
  );
}