InvoiceRequest class
A model representing an invoice request with essential information used to uniquely identify and manage an invoice within the system.
This class includes the invoice hash, the invoice data, and a unique identifier (UUID) for tracking the request.
Constructors
- InvoiceRequest.new({required String invoice, required String invoiceHash, required String uuid})
-
Creates a new instance of InvoiceRequest.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- invoice → String
-
The actual invoice data, typically in a structured format (e.g., JSON, XML).
final
- invoiceHash → String
-
The unique hash representing the invoice, often used for validation or
verification purposes.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- uuid → String
-
A universally unique identifier (UUID) assigned to the invoice request,
used to uniquely identify this particular request.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> - Converts the InvoiceRequest instance to a map of key-value pairs.
-
toString(
) → String -
Returns a string representation of the InvoiceRequest for debugging.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromMap(
Map< String, dynamic> map) → InvoiceRequest - Creates an instance of InvoiceRequest from a map of key-value pairs.