TronRequestTransferAsset.fromJson constructor

TronRequestTransferAsset.fromJson(
  1. TransferAssetContract contract, {
  2. bool visible = true,
  3. int? permissionId,
  4. String? extraData,
})

Implementation

factory TronRequestTransferAsset.fromJson(TransferAssetContract contract,
    {bool visible = true, int? permissionId, String? extraData}) {
  return TronRequestTransferAsset(
    ownerAddress: contract.ownerAddress,
    toAddress: contract.toAddress,
    assetName: StringUtils.decode(contract.assetName),
    amount: contract.amount,
    permissionId: permissionId,
    visible: visible,
    extraData: extraData,
  );
}