copyWith method

CreatePaymentResponse copyWith({
  1. PaymentMethod? paymentMethod,
  2. InvoiceOrder? order,
  3. String? id,
  4. Map<String, dynamic>? customParameters,
  5. DateTime? createDate,
  6. DateTime? updateDate,
  7. DateTime? expireDate,
  8. String? paymentUrl,
  9. 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,
  );
}