Transaction class
Model class representing a transaction
Constructors
- Transaction({TransactionType? type, String? amount, String? referenceNo, String? merchant})
-
Creates a Transaction instance
const
-
Transaction.fromJson(Map<
String, dynamic> json) -
Creates a Transaction from JSON
factory
Properties
- amount → String?
-
Transaction amount
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- merchant → String?
-
Merchant name or UPI ID
final
- referenceNo → String?
-
Transaction reference number
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → TransactionType?
-
Type of transaction (debit or credit)
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts Transaction to JSON
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited