@Immutable @LevelUpApi(contract=PUBLIC) public final class CreditCardJsonFactory extends AbstractJsonModelFactory<CreditCard>
CreditCard
s from JSON.
This is internal until it supports v14.Modifier and Type | Class and Description |
---|---|
static class |
CreditCardJsonFactory.JsonKeys
All of the keys in the JSON representation of this model.
|
Constructor and Description |
---|
CreditCardJsonFactory()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected CreditCard |
createFrom(JSONObject json)
Parse an instance of the model from a
JSONObject . |
from, fromList, getTypeKey
protected CreditCard createFrom(JSONObject json) throws JSONException
AbstractJsonModelFactory
JSONObject
.createFrom
in class AbstractJsonModelFactory<CreditCard>
json
- the JSONObject
to parse from.T
parsed from json
.JSONException
- If the model fails to parse.