TronResult.fromJson constructor
TronResult.fromJson(
- Map<String, dynamic> json
)
Implementation
factory TronResult.fromJson(Map<String, dynamic> json) {
return TronResult(
fee: json.asBigInt("fee"),
ret: json["ret"] == null ? null : TronResultCode.fromValue(json['ret']),
contractRet: json["contractRet"] == null
? null
: TronContractResult.fromValue(json.as("contractRet")),
assetIssueID: json.as("assetIssueID"),
withdrawAmount: json.asBigInt("withdraw_amount"),
unfreezeAmount: json.asBigInt("unfreeze_amount"),
exchangeReceivedAmount: json.asBigInt("exchange_received_amount"),
exchangeInjectAnotherAmount:
json.asBigInt("exchange_inject_another_amount"),
exchangeWithdrawAnotherAmount:
json.asBigInt("exchange_withdraw_another_amount"),
exchangeId: json.asBigInt("exchange_id"),
shieldedTransactionFee: json.asBigInt("shielded_transaction_fee"),
withdrawExpireAmount: json['withdraw_expire_amount'],
cancelUnfreezeV2Amount: (json['cancel_unfreezeV2_amount'] as Map?)
?.map((k, v) => MapEntry(k.toString(), BigintUtils.parse(v))),
);
}