WalletTransaction class
Constructors
- WalletTransaction({String? id, WalletTransactionTypeEnum? type, WalletTransactionSource_Enum? source_, num? amount, String? currency, String? description, num? originalAmount, String? originalCurrency, num? conversionRate, DateTime? date})
- Returns a new WalletTransaction instance.
Properties
- amount ↔ num?
-
The amount, in the wallet's currency.
getter/setter pair
- conversionRate ↔ num?
-
The rate applied when the currencies differ.
getter/setter pair
- currency ↔ String?
-
The wallet's currency.
getter/setter pair
- date ↔ DateTime?
-
When the transaction was made (UTC).
getter/setter pair
- description ↔ String?
-
A short description.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setteroverride
- id ↔ String?
-
Transaction id.
getter/setter pair
- originalAmount ↔ num?
-
The amount before conversion, in
originalCurrency.getter/setter pair - originalCurrency ↔ String?
-
The currency the amount was given in.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- source_ ↔ WalletTransactionSource_Enum?
-
Why the transaction was made, such as
order,topUporexchange.getter/setter pair - type ↔ WalletTransactionTypeEnum?
-
debitadds funds to the wallet;credittakes funds from it.getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
fromJson(
dynamic value) → WalletTransaction? -
Returns a new WalletTransaction instance and imports its values from
valueif it's a Map, null otherwise. -
listFromJson(
dynamic json, {bool growable = false}) → List< WalletTransaction> -
mapFromJson(
dynamic json) → Map< String, WalletTransaction> -
mapListFromJson(
dynamic json, {bool growable = false}) → Map< String, List< WalletTransaction> >
Constants
-
requiredKeys
→ const Set<
String> - The list of required keys that must be present in a JSON.