@ThreadSafe @LevelUpApi(contract=PUBLIC) public final class PaymentTokenJsonFactory extends AbstractJsonModelFactory<PaymentToken>
PaymentToken
s 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, getTypeKey
public PaymentTokenJsonFactory()
protected PaymentToken createFrom(JSONObject json) throws JSONException
AbstractJsonModelFactory
JSONObject
.createFrom
in class AbstractJsonModelFactory<PaymentToken>
json
- the JSONObject
to parse from.T
parsed from json
.JSONException
- If the model fails to parse.