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
Constructors -
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:
deserializein interfacecom.google.gson.JsonDeserializer<Item>- Parameters:
jElement- The JSON element passed in by GsontypeOfT- The type for the adapter,RequestAuthcontext- Deserialization context- Returns:
- ItemAuth The assembed
Itemobject - Throws:
com.google.gson.JsonParseException- IF there are errors in the JSON element
-