code: public <R> R getData(TypeToken<R> type) {
          return GSON.fromJson(data, type.getType());
      }
docs: Return the event data parsed into the given type.
  @param type type token to parse data
  @param <R> type to parse the data into
  @return the event data