WalletTransfer class

Constructors

WalletTransfer({String? transferId, num? sentAmount, String? sentCurrency, num? receivedAmount, String? receivedCurrency, num? conversionRate, DateTime? transferDate})
Returns a new WalletTransfer instance.

Properties

conversionRate ↔ num?
Destination currency units per source currency unit.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
receivedAmount ↔ num?
The amount added to the destination wallet.
getter/setter pair
receivedCurrency ↔ String?
The destination wallet's currency.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sentAmount ↔ num?
The amount taken from the source wallet.
getter/setter pair
sentCurrency ↔ String?
The source wallet's currency.
getter/setter pair
transferDate ↔ DateTime?
When the transfer was made (UTC).
getter/setter pair
transferId ↔ String?
Transfer id.
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) → WalletTransfer?
Returns a new WalletTransfer instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<WalletTransfer>
mapFromJson(dynamic json) → Map<String, WalletTransfer>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<WalletTransfer>>

Constants

requiredKeys → const Set<String>
The list of required keys that must be present in a JSON.