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