Package com.stripe.model
Class EventDataDeserializer
java.lang.Object
com.stripe.model.EventDataDeserializer
- All Implemented Interfaces:
com.google.gson.JsonDeserializer<Event.Data>
public class EventDataDeserializer
extends Object
implements com.google.gson.JsonDeserializer<Event.Data>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeserialize(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context) Deserializes the JSON payload contained in an event'sdataattribute into anEvent.Datainstance.
-
Constructor Details
-
EventDataDeserializer
public EventDataDeserializer()
-
-
Method Details
-
deserialize
public Event.Data deserialize(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context) throws com.google.gson.JsonParseException Deserializes the JSON payload contained in an event'sdataattribute into anEvent.Datainstance.- Specified by:
deserializein interfacecom.google.gson.JsonDeserializer<Event.Data>- Throws:
com.google.gson.JsonParseException
-