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