alcatrazbr
11/24/2016 - 9:18 PM

HashMap to object

HashMap to object

 Gson gson = new Gson();
JsonElement jsonElement = gson.toJsonTree(precos.get(Modalidade));
Preco p = gson.fromJson(jsonElement, Preco.class);