@Immutable @LevelUpApi(contract=PUBLIC) public final class UserJsonFactory extends AbstractJsonModelFactory<User>
Users from JSON.| Modifier and Type | Class and Description |
|---|---|
static class |
UserJsonFactory.JsonKeys
Keys for JSON properties for this object for use in deserialization.
|
| Constructor and Description |
|---|
UserJsonFactory()
Constructs new factory.
|
| Modifier and Type | Method and Description |
|---|---|
protected User |
createFrom(JSONObject json)
Parse an instance of the model from a
JSONObject. |
from, fromList, getTypeKeyprotected User createFrom(JSONObject json) throws JSONException
AbstractJsonModelFactoryJSONObject.createFrom in class AbstractJsonModelFactory<User>json - the JSONObject to parse from.T parsed from json.JSONException - If the model fails to parse.