@ThreadSafe @LevelUpApi(contract=PUBLIC) public final class PaymentTokenJsonFactory extends AbstractJsonModelFactory<PaymentToken>
PaymentTokens from JSON.| Modifier and Type | Class and Description |
|---|---|
static class |
PaymentTokenJsonFactory.JsonKeys
Keys for JSON properties for this object for use in deserialization.
|
| Constructor and Description |
|---|
PaymentTokenJsonFactory()
Constructs a new factory.
|
| Modifier and Type | Method and Description |
|---|---|
protected PaymentToken |
createFrom(JSONObject json)
Parse an instance of the model from a
JSONObject. |
from, fromList, getTypeKeypublic PaymentTokenJsonFactory()
protected PaymentToken createFrom(JSONObject json) throws JSONException
AbstractJsonModelFactoryJSONObject.createFrom in class AbstractJsonModelFactory<PaymentToken>json - the JSONObject to parse from.T parsed from json.JSONException - If the model fails to parse.