Class JsonReader.SearchResultDeserializer

  • All Implemented Interfaces:
    com.google.gson.JsonDeserializer<SearchResponse>
    Enclosing class:
    JsonReader

    private static class JsonReader.SearchResultDeserializer
    extends Object
    implements com.google.gson.JsonDeserializer<SearchResponse>
    Deserializes a SearchResponse by iterating over the json elements.
    • Constructor Detail

      • SearchResultDeserializer

        private SearchResultDeserializer()
    • Method Detail

      • deserialize

        public SearchResponse deserialize​(com.google.gson.JsonElement json,
                                          Type type,
                                          com.google.gson.JsonDeserializationContext context)
                                   throws com.google.gson.JsonParseException
        Specified by:
        deserialize in interface com.google.gson.JsonDeserializer<SearchResponse>
        Throws:
        com.google.gson.JsonParseException