@Override
public TimedEvent deserialize(JsonElement json, Type typeOfT,
JsonDeserializationContext context) throws JsonParseException {
final long time = json.getAsJsonObject().get("time").getAsLong();
final PDPScenarioEvent type = PDPScenarioEvent.valueOf(json
.getAsJsonObject().get("eventType").getAsJsonObject().get("name")
.getAsString());
switch (type) {
case ADD_DEPOT: