code: @Override
      public Collection<AlertEvent> deserialize(JsonElement element, Type type, JsonDeserializationContext context)
          throws JsonParseException
      {
          JsonObject obj = element.getAsJsonObject();
          JsonArray events = obj.getAsJsonArray("recent_events");
          List<AlertEvent> values = new ArrayList<AlertEvent>();
          if(events != null && events.isJsonArray())
          {
              for(JsonElement event : events)
                  values.add(gson.fromJson(event, AlertEvent.class));
          }
          return values;
      }
docs: Gson invokes this call-back method during deserialization when it encounters a field of the specified type.
  @param element The Json data being deserialized
  @param type The type of the Object to deserialize to
  @param context The JSON deserialization context
  @return The alert events