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