Adding a memo deserializer to the Gson instance that will take care of the 'get_transaction' API response

develop
Nelson R. Perez 2019-01-10 22:17:33 -05:00
parent 1c261746a2
commit 709b7e2734
1 changed files with 1 additions and 0 deletions

View File

@ -207,6 +207,7 @@ public class DeserializationMap {
mClassMap.put(GetTransaction.class, Transaction.class);
Gson getTransactionGson = new GsonBuilder()
.registerTypeAdapter(Transaction.class, new Transaction.TransactionDeserializer())
.registerTypeAdapter(Memo.class, new Memo.MemoDeserializer())
.registerTypeAdapter(AssetAmount.class, new AssetAmount.AssetAmountDeserializer())
.registerTypeAdapter(TransferOperation.class, new TransferOperation.TransferDeserializer())
.create();