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