I\'m trying to create some Java objects using this line:
Quiz currentQuiz = gson.fromJson(json, Quiz.class);
But the all I get is this:
In my case I had deleted
@SerializedName("OpCode") @Expose
parts from my model class which are above the
private Integer opCode;
line. And so Gson could not parse it and so my attributes were null. When I added those lines it fixed.