code: public <R> R getData(Class<R> type) {
          return GSON.fromJson(data, type);
      }
docs: Return this event's data parsed into the given type.
  @param type class to parse data
  @param <R> type to parse the data into
  @return the data