code: public T parse(InputStream inputStream) {
          Reader inputStreamReader = new InputStreamReader(inputStream);
          Reader streamReader = new BufferedReader(inputStreamReader);
  
          // Parse result type from the returned JSON
          return gson.fromJson(streamReader, type.getType());
      }
docs: Parses a Json response that has a direct representation as a Java class.
  @param inputStream result stream to parse.
  @return The parsed value.