Class ItemDeserializer

java.lang.Object
com.postman.collection.adapter.ItemDeserializer
All Implemented Interfaces:
com.google.gson.JsonDeserializer<Item>

public class ItemDeserializer extends Object implements com.google.gson.JsonDeserializer<Item>
Custom deserializer for writing out the Item class, the item propertyList
  • 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 a Item
      Specified by:
      deserialize in interface com.google.gson.JsonDeserializer<Item>
      Parameters:
      jElement - The JSON element passed in by Gson
      typeOfT - 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