copyWith method
CreatePaymentResponse
copyWith({
- PaymentMethod? paymentMethod,
- InvoiceOrder? order,
- String? id,
- Map<
String, dynamic> ? customParameters, - DateTime? createDate,
- DateTime? updateDate,
- DateTime? expireDate,
- String? paymentUrl,
- String? statusDescription,
Implementation
CreatePaymentResponse copyWith({
PaymentMethod? paymentMethod,
InvoiceOrder? order,
String? id,
Map<String, dynamic>? customParameters,
DateTime? createDate,
DateTime? updateDate,
DateTime? expireDate,
String? paymentUrl,
String? statusDescription,
}) {
return CreatePaymentResponse(
paymentMethod: paymentMethod ?? this.paymentMethod,
paymentUrl: paymentUrl ?? this.paymentUrl,
statusDescription: statusDescription ?? this.statusDescription,
expireDate: expireDate ?? this.expireDate,
updateDate: updateDate ?? this.updateDate,
createDate: createDate ?? this.createDate,
id: id ?? this.id,
customParameters: customParameters ?? this.customParameters,
order: order ?? this.order,
);
}