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