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