Package software.amazon.awssdk.iot
Class Timestamp.Deserializer
java.lang.Object
software.amazon.awssdk.iot.Timestamp.Deserializer
- All Implemented Interfaces:
com.google.gson.JsonDeserializer<Timestamp>
- Enclosing class:
- Timestamp
public static class Timestamp.Deserializer
extends Object
implements com.google.gson.JsonDeserializer<Timestamp>
Deserializer to convert JSON to Timestamp
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeserialize(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context) Deserializes JSON to a Timestamp
-
Constructor Details
-
Deserializer
public Deserializer()
-
-
Method Details
-
deserialize
public Timestamp deserialize(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context) throws com.google.gson.JsonParseException Deserializes JSON to a Timestamp- Specified by:
deserializein interfacecom.google.gson.JsonDeserializer<Timestamp>- Parameters:
json- The JsonElement containing the TimestamptypeOfT- The Type to usecontext- The JsonDeserializationContext to use- Returns:
- A Timestamp containing the data in the JsonElement
- Throws:
com.google.gson.JsonParseException
-