Package com.stripe.model
Class InstantDeserializer
java.lang.Object
com.stripe.model.InstantDeserializer
- All Implemented Interfaces:
com.google.gson.JsonDeserializer<Instant>
,com.google.gson.JsonSerializer<Instant>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeserialize
(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context) Deserializes an timestamp JSON payload into anInstant
object.com.google.gson.JsonElement
-
Constructor Details
-
InstantDeserializer
public InstantDeserializer()
-
-
Method Details
-
deserialize
public Instant deserialize(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context) throws com.google.gson.JsonParseException Deserializes an timestamp JSON payload into anInstant
object.- Specified by:
deserialize
in interfacecom.google.gson.JsonDeserializer<Instant>
- Throws:
com.google.gson.JsonParseException
-
serialize
public com.google.gson.JsonElement serialize(Instant src, Type typeOfSrc, com.google.gson.JsonSerializationContext context) - Specified by:
serialize
in interfacecom.google.gson.JsonSerializer<Instant>
-