toJson method
Implementation
Map<String, dynamic> toJson() {
final map = <String, dynamic>{};
map['uuid'] = uuid;
map['reference'] = reference;
map['cryptoTransactionHash'] = cryptoTransactionHash;
map['expectedAmountInCrypto'] = expectedAmountInCrypto;
map['expectedAmountInUSD'] = expectedAmountInUSD;
map['expectedAmountInBaseFiat'] = expectedAmountInBaseFiat;
map['expectedAmountInBusinessPrimaryFiat'] =
expectedAmountInBusinessPrimaryFiat;
map['receivedAmountInCrypto'] = receivedAmountInCrypto;
map['receivedAmountInUSD'] = receivedAmountInUSD;
map['receivedAmountInBaseFiat'] = receivedAmountInBaseFiat;
map['receivedAmountInBusinessPrimaryFiat'] =
receivedAmountInBusinessPrimaryFiat;
map['excessAmountReceivedInCrypto'] = excessAmountReceivedInCrypto;
map['feeInCrypto'] = feeInCrypto;
map['expectedAmountInCryptoPlusFee'] = expectedAmountInCryptoPlusFee;
map['crypto'] = crypto;
map['baseFiat'] = baseFiat;
map['businessPrimaryFiat'] = businessPrimaryFiat;
map['baseFiatToUSDRate'] = baseFiatToUSDRate;
map['baseFiatToBusinessPrimaryFiatRate'] =
baseFiatToBusinessPrimaryFiatRate;
map['usdToCryptoRate'] = usdToCryptoRate;
map['address'] = address;
map['metadata'] = metadata;
map['environment'] = environment;
map['origin'] = origin;
map['businessId'] = businessId;
map['userId'] = userId;
map['customerId'] = customerId;
map['expiresAt'] = expiresAt;
map['completedAt'] = completedAt;
map['status'] = status;
map['failureReason'] = failureReason;
map['createdAtDateOnly'] = createdAtDateOnly;
map['createdAt'] = createdAt;
if (customer != null) {
map['customer'] = customer?.toJson();
}
return map;
}