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