Class AggregationDeserializer

java.lang.Object
com.ibm.watson.discovery.v1.query.AggregationDeserializer
All Implemented Interfaces:
com.google.gson.JsonDeserializer<QueryAggregation>

public class AggregationDeserializer
extends Object
implements com.google.gson.JsonDeserializer<QueryAggregation>
Deprecated.
This class has been replaced by logic inside of the QueryAggregation class.
Deserializer to transform JSON into a QueryAggregation.
  • Constructor Details

    • AggregationDeserializer

      public AggregationDeserializer()
      Deprecated.
  • Method Details

    • deserialize

      public QueryAggregation deserialize​(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context) throws com.google.gson.JsonParseException
      Deprecated.
      Deserializes JSON and converts it to the appropriate QueryAggregation subclass.
      Specified by:
      deserialize in interface com.google.gson.JsonDeserializer<QueryAggregation>
      Parameters:
      json - the JSON data being deserialized
      typeOfT - the type to deserialize to, which should be QueryAggregation
      context - additional information about the deserialization state
      Returns:
      the appropriate QueryAggregation subclass
      Throws:
      com.google.gson.JsonParseException - signals that there has been an issue parsing the JSON