Transaction class

Constructors

Transaction({required String id, required num amount, required String createdAt, String? paymentMethodId, Map<String, String>? metadata})
Transaction.fromMap(Map<String, dynamic> map)
Creates an instance from a map
factory

Properties

amount num
The transaction amount
final
createdAt String
When the transaction occurred
final
hashCode int
The hash code for this object.
no setterinherited
id String
Unique identifier for the transaction
final
metadata Map<String, String>?
Optional metadata associated with the transaction
final
paymentMethodId String?
The payment method ID (nullable)
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Operators

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