copyWith method

PaymentRequest copyWith({
  1. String? id,
  2. String? user_id,
  3. String? status_id,
  4. String? client_id,
  5. String? payment_method_id,
  6. String? account,
  7. String? amount,
  8. String? total_paid,
  9. String? balance,
  10. String? mobile,
  11. String? email,
  12. String? reference,
  13. String? TransID,
  14. String? MerchantRequestID,
  15. String? FirstName,
  16. String? MiddleName,
  17. String? LastName,
  18. String? TransTime,
  19. String? CheckoutRequestID,
  20. String? description,
  21. String? processor_response,
  22. String? created_at,
  23. String? updated_at,
  24. String? deleted_at,
  25. String? redirectUrl,
  26. String? TransRef,
  27. String? TransToken,
})

Implementation

PaymentRequest copyWith({
  String? id,
  String? user_id,
  String? status_id,
  String? client_id,
  String? payment_method_id,
  String? account,
  String? amount,
  String? total_paid,
  String? balance,
  String? mobile,
  String? email,
  String? reference,
  String? TransID,
  String? MerchantRequestID,
  String? FirstName,
  String? MiddleName,
  String? LastName,
  String? TransTime,
  String? CheckoutRequestID,
  String? description,
  String? processor_response,
  String? created_at,
  String? updated_at,
  String? deleted_at,
  String? redirectUrl,
  String? TransRef,
  String? TransToken,
}) {
  return PaymentRequest(
    id: id ?? this.id,
    user_id: user_id ?? this.user_id,
    status_id: status_id ?? this.status_id,
    client_id: client_id ?? this.client_id,
    payment_method_id: payment_method_id ?? this.payment_method_id,
    account: account ?? this.account,
    amount: amount ?? this.amount,
    total_paid: total_paid ?? this.total_paid,
    balance: balance ?? this.balance,
    mobile: mobile ?? this.mobile,
    email: email ?? this.email,
    reference: reference ?? this.reference,
    TransID: TransID ?? this.TransID,
    MerchantRequestID: MerchantRequestID ?? this.MerchantRequestID,
    FirstName: FirstName ?? this.FirstName,
    MiddleName: MiddleName ?? this.MiddleName,
    LastName: LastName ?? this.LastName,
    TransTime: TransTime ?? this.TransTime,
    CheckoutRequestID: CheckoutRequestID ?? this.CheckoutRequestID,
    description: description ?? this.description,
    processor_response: processor_response ?? this.processor_response,
    created_at: created_at ?? this.created_at,
    updated_at: updated_at ?? this.updated_at,
    deleted_at: deleted_at ?? this.deleted_at,
    redirectUrl: redirectUrl ?? this.redirectUrl,
    TransRef: TransRef ?? this.TransRef,
    TransToken: TransToken ?? this.TransToken,
  );
}