@Immutable @LevelUpApi(contract=INTERNAL) public final class LocationJsonFactory extends AbstractJsonModelFactory<Location>
Location
s from JSON (v14).Modifier and Type | Class and Description |
---|---|
static class |
LocationJsonFactory.JsonKeys
All of the keys in the JSON representation of this model.
|
Constructor and Description |
---|
LocationJsonFactory()
Constructs a new factory.
|
Modifier and Type | Method and Description |
---|---|
protected Location |
createFrom(JSONObject json)
Parse an instance of the model from a
JSONObject . |
from, fromList, getTypeKey
protected Location createFrom(JSONObject json) throws JSONException
AbstractJsonModelFactory
JSONObject
.createFrom
in class AbstractJsonModelFactory<Location>
json
- the JSONObject
to parse from.T
parsed from json
.JSONException
- If the model fails to parse.