Package com.stripe.model
Class ExpandableFieldDeserializer
java.lang.Object
com.stripe.model.ExpandableFieldDeserializer
- All Implemented Interfaces:
com.google.gson.JsonDeserializer<ExpandableField<?>>
public class ExpandableFieldDeserializer
extends Object
implements com.google.gson.JsonDeserializer<ExpandableField<?>>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondeserialize
(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context) Deserializes an expandable field JSON payload (i.e.
-
Constructor Details
-
ExpandableFieldDeserializer
public ExpandableFieldDeserializer()
-
-
Method Details
-
deserialize
public ExpandableField<?> deserialize(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context) throws com.google.gson.JsonParseException Deserializes an expandable field JSON payload (i.e. either a string with just the ID, or a full JSON object) into anExpandableField
object.- Specified by:
deserialize
in interfacecom.google.gson.JsonDeserializer<ExpandableField<?>>
- Throws:
com.google.gson.JsonParseException
-