| Package | Description |
|---|---|
| com.bigchaindb.json.strategy | |
| com.bigchaindb.model |
| Modifier and Type | Method | Description |
|---|---|---|
com.google.gson.JsonElement |
AssetSerializer.serialize(Asset src,
Type typeOfSrc,
com.google.gson.JsonSerializationContext context) |
Serialize an asset object to json object
Note: given the type of the asset.data it maybe necessary to
to add a type adapter
JsonSerializer and/or JsonDeserializer with JsonUtils and
JsonUtils.addTypeAdapterSerializer(java.lang.Class, com.google.gson.JsonSerializer<?>)
TODO test user.data with custom serializer |
| Modifier and Type | Method | Description |
|---|---|---|
Asset |
Transaction.getAsset() |
Gets the asset.
|
| Modifier and Type | Method | Description |
|---|---|---|
List<Asset> |
Assets.getAssets() |
Gets the assets.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
Assets.addAsset(Asset asset) |
Adds the asset.
|
void |
Transaction.setAsset(Asset asset) |
Sets the asset.
|
Copyright © 2018. All rights reserved.