@Immutable @LevelUpApi(contract=PUBLIC) public final class UserWithAccessTokenJsonFactory extends AbstractJsonModelFactory<UserWithAccessToken>
UserWithAccessToken
from JSON
objects.Constructor and Description |
---|
UserWithAccessTokenJsonFactory() |
Modifier and Type | Method and Description |
---|---|
protected UserWithAccessToken |
createFrom(JSONObject json)
Parse an instance of the model from a
JSONObject . |
from, fromList, getTypeKey
protected UserWithAccessToken createFrom(JSONObject json) throws JSONException
AbstractJsonModelFactory
JSONObject
.createFrom
in class AbstractJsonModelFactory<UserWithAccessToken>
json
- the JSONObject
to parse from.T
parsed from json
.JSONException
- If the model fails to parse.