State
public State(com.google.gson.JsonObject response)
Parses a JsonObject into State.
Firstly, it begins iterating over the object.
If the object we are converting is a solo JsonPrimitive, we map it directly to the variable.
If the object we are converting is an array of JsonPrimitives,
we firstly create an array of the same size as it.
Then, iterate over it.
If the object is a JsonObject with the same mappings each time, it is mapped to a HashMap.
If the object is a JsonObject with different mappings, it is mapped to a Java Object.
- Parameters:
response - JsonObject of the response.
- See Also:
JsonObject,
JsonArray,
JsonPrimitive,
JsonElement