Data class

The above class defines a data model for a transaction with various properties such as ID, email, address, expected amount in USD and crypto, fees, and exchange rates.

Constructors

Data({String? id, String? email, String? address, String? reference, num? expectedAmountInUSD, num? expectedAmountInCrypto, num? feeInCrypto, num? feeInUSD, num? expectedAmountWithFeeInCrypto, String? crypto, String? baseFiat, num? baseFiatToUSDRate, num? usdToCryptoRate})
Data.fromJson(dynamic json)

Properties

address String?
getter/setter pair
baseFiat String?
getter/setter pair
baseFiatToUSDRate num?
getter/setter pair
crypto String?
getter/setter pair
email String?
getter/setter pair
expectedAmountInCrypto num?
getter/setter pair
expectedAmountInUSD num?
getter/setter pair
expectedAmountWithFeeInCrypto num?
getter/setter pair
feeInCrypto num?
getter/setter pair
feeInUSD num?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
id String?
getter/setter pair
reference String?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
usdToCryptoRate num?
getter/setter pair

Methods

copyWith({String? id, String? email, String? address, String? reference, num? expectedAmountInUSD, num? expectedAmountInCrypto, num? feeInCrypto, num? feeInUSD, num? expectedAmountWithFeeInCrypto, String? crypto, String? baseFiat, num? baseFiatToUSDRate, num? usdToCryptoRate}) Data
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.
inherited

Operators

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