fromArguments static method
Implementation
static OnrampPurchase fromArguments(dynamic arguments) {
OnrampPurchase purchase = OnrampPurchase();
purchase.id = arguments["id"];
purchase.endTime = arguments["endTime"];
purchase.asset = PurchaseAssetInfo.fromArguments(arguments["asset"]);
purchase.receiverAddress = arguments["receiverAddress"];
purchase.cryptoAmount = arguments["cryptoAmount"];
purchase.fiatCurrency = arguments["fiatCurrency"];
purchase.fiatValue = arguments["fiatValue"];
purchase.assetExchangeRate = arguments["assetExchangeRate"];
purchase.baseRampFee = arguments["baseRampFee"];
purchase.networkFee = arguments["networkFee"];
purchase.appliedFee = arguments["appliedFee"];
purchase.paymentMethodType = arguments["paymentMethodType"];
purchase.finalTxHash = arguments["finalTxHash"];
purchase.createdAt = arguments["createdAt"];
purchase.updatedAt = arguments["updatedAt"];
purchase.status = arguments["status"];
purchase.escrowAddress = arguments["escrowAddress"];
purchase.escrowDetailsHash = arguments["escrowDetailsHash"];
return purchase;
}