alcatrazbr
11/23/2016 - 7:45 PM

java HashMap to Object

java HashMap to Object

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