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