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