Class SmartrateCollectionDeserializer
java.lang.Object
com.easypost.model.SmartrateCollectionDeserializer
- All Implemented Interfaces:
com.google.gson.JsonDeserializer<SmartrateCollection>
public final class SmartrateCollectionDeserializer
extends Object
implements com.google.gson.JsonDeserializer<SmartrateCollection>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondeserialize
(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context) Deserialize a SmartrateCollection from a JSON object.
-
Constructor Details
-
SmartrateCollectionDeserializer
public SmartrateCollectionDeserializer()
-
-
Method Details
-
deserialize
public SmartrateCollection deserialize(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context) throws com.google.gson.JsonParseException Deserialize a SmartrateCollection from a JSON object.- Specified by:
deserialize
in interfacecom.google.gson.JsonDeserializer<SmartrateCollection>
- Parameters:
json
- JSON object to deserialize.typeOfT
- Type of the object to deserialize.context
- Deserialization context.- Returns:
- Deserialized SmartrateCollection object.
- Throws:
com.google.gson.JsonParseException
- if the JSON object is not a valid SmartrateCollection.
-