Package com.postman.collection.adapter
Class ItemDeserializer
java.lang.Object
com.postman.collection.adapter.ItemDeserializer
- All Implemented Interfaces:
com.google.gson.JsonDeserializer<Item>
Custom deserializer for writing out the Item class, the
item
propertyList-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondeserialize
(com.google.gson.JsonElement jElement, Type typeOfT, com.google.gson.JsonDeserializationContext context) Deserialize aItem
-
Constructor Details
-
ItemDeserializer
public ItemDeserializer()
-
-
Method Details
-
deserialize
public Item deserialize(com.google.gson.JsonElement jElement, Type typeOfT, com.google.gson.JsonDeserializationContext context) throws com.google.gson.JsonParseException Deserialize aItem
- Specified by:
deserialize
in interfacecom.google.gson.JsonDeserializer<Item>
- Parameters:
jElement
- The JSON element passed in by GsontypeOfT
- The type for the adapter,RequestAuth
context
- Deserialization context- Returns:
- ItemAuth The assembed
Item
object - Throws:
com.google.gson.JsonParseException
- IF there are errors in the JSON element
-