Class ItemGroupDeserializer

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

public class ItemGroupDeserializer extends Object implements com.google.gson.JsonDeserializer<ItemGroup>
Deserializes ItemGroup objects, the item propertyList in a collection
  • Constructor Details

    • ItemGroupDeserializer

      public ItemGroupDeserializer()
  • Method Details

    • deserialize

      public ItemGroup deserialize(com.google.gson.JsonElement jElement, Type typeOfT, com.google.gson.JsonDeserializationContext context) throws com.google.gson.JsonParseException
      Deserialize a ItemGroup from the item propertyList
      Specified by:
      deserialize in interface com.google.gson.JsonDeserializer<ItemGroup>
      Parameters:
      jElement - The JSON element passed in by Gson
      typeOfT - The type for the adapter, RequestAuth
      context - Deserialization context
      Returns:
      ItemGroup The assembed ItemGroup
      Throws:
      com.google.gson.JsonParseException - IF there are errors in the JSON element