Data.fromJson constructor
Data.fromJson(
- dynamic json
Implementation
Data.fromJson(dynamic json) {
uuid = json['uuid'];
reference = json['reference'];
cryptoTransactionHash = json['cryptoTransactionHash'];
expectedAmountInCrypto = json['expectedAmountInCrypto'];
expectedAmountInUSD = json['expectedAmountInUSD'];
expectedAmountInBaseFiat = json['expectedAmountInBaseFiat'];
expectedAmountInBusinessPrimaryFiat =
json['expectedAmountInBusinessPrimaryFiat'];
receivedAmountInCrypto = json['receivedAmountInCrypto'];
receivedAmountInUSD = json['receivedAmountInUSD'];
receivedAmountInBaseFiat = json['receivedAmountInBaseFiat'];
receivedAmountInBusinessPrimaryFiat =
json['receivedAmountInBusinessPrimaryFiat'];
excessAmountReceivedInCrypto = json['excessAmountReceivedInCrypto'];
feeInCrypto = json['feeInCrypto'];
expectedAmountInCryptoPlusFee = json['expectedAmountInCryptoPlusFee'];
crypto = json['crypto'];
baseFiat = json['baseFiat'];
businessPrimaryFiat = json['businessPrimaryFiat'];
baseFiatToUSDRate = json['baseFiatToUSDRate'];
baseFiatToBusinessPrimaryFiatRate =
json['baseFiatToBusinessPrimaryFiatRate'];
usdToCryptoRate = json['usdToCryptoRate'];
address = json['address'];
metadata = json['metadata'];
environment = json['environment'];
origin = json['origin'];
businessId = json['businessId'];
userId = json['userId'];
customerId = json['customerId'];
expiresAt = json['expiresAt'];
completedAt = json['completedAt'];
status = json['status'];
failureReason = json['failureReason'];
createdAtDateOnly = json['createdAtDateOnly'];
createdAt = json['createdAt'];
customer =
json['customer'] != null ? Customer.fromJson(json['customer']) : null;
}