TransactionResult class

Represents the result of a transaction.

Constructors

TransactionResult({String? statusMessage, String? paymentType, String? transactionStatus, String? transactionId, String? orderId, bool isCanceled = false, bool isFailed = false})
Creates a new instance of TransactionResult.
TransactionResult.fromJson(Map<String, dynamic> json)
Creates a TransactionResult instance from a JSON map.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
isCanceled bool
Indicates whether the transaction is canceled.
final
isFailed bool
Indicates whether the transaction has failed.
final
orderId String?
The order ID associated with the transaction.
final
paymentType String?
The type of payment used in the transaction.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
statusMessage String?
The status message of the transaction.
final
transactionId String?
The ID associated with the transaction.
final
transactionStatus String?
The status of the transaction.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts the transaction result to a JSON representation.
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited