copyWith method
Create a copy of this request with updated values
Implementation
PaymentRequest copyWith({
double? amount,
String? currency,
String? description,
String? orderId,
String? successUrl,
String? cancelUrl,
String? customerEmail,
String? customerName,
String? customerPhone,
Map<String, dynamic>? metadata,
String? returnUrl,
}) {
return PaymentRequest(
amount: amount ?? this.amount,
currency: currency ?? this.currency,
description: description ?? this.description,
orderId: orderId ?? this.orderId,
successUrl: successUrl ?? this.successUrl,
cancelUrl: cancelUrl ?? this.cancelUrl,
customerEmail: customerEmail ?? this.customerEmail,
customerName: customerName ?? this.customerName,
customerPhone: customerPhone ?? this.customerPhone,
metadata: metadata ?? this.metadata,
returnUrl: returnUrl ?? this.returnUrl,
);
}