return getType();
}
@Override
public JSONObject toJSON() throws JSONException {
JSONObject json = new JSONObject();
json.put("id", id);
json.put("student", student == null ? null : student.getId());
json.put("startDate", startDate == null ? null : startDate.getTime());
json.put("endDate", endDate == null ? null : endDate.getTime());
json.put("duration", duration);
json.put("title", getTitle());
return json;
}