if (!json.isNull("degree")) {
JSONObject degreeJSON = json.getJSONObject("degree");
degree = new IdNameEntityJSONImpl(degreeJSON);
}
if (!json.isNull("concentration")) {
JSONArray concentrationJSONArray = json.getJSONArray("concentration");
concentration = new ArrayList<IdNameEntity>();
for (int i = 0; i < concentrationJSONArray.length(); i++) {
concentration.add(new IdNameEntityJSONImpl(concentrationJSONArray.getJSONObject(i)));
}
} else {
concentration = Collections.emptyList();
}
if (!json.isNull("classes")) {
JSONArray classesJSONArray = json.getJSONArray("classes");
classes = new ArrayList<EducationClass>();
for (int i = 0; i < classesJSONArray.length(); i++) {
classes.add(new EducationClassJSONImpl(classesJSONArray.getJSONObject(i)));
}
} else {
classes = Collections.emptyList();
}
if (!json.isNull("with")) {
JSONArray withJSONArray = json.getJSONArray("with");
with = new ArrayList<IdNameEntity>();
for (int i = 0; i < withJSONArray.length(); i++) {
with.add(new IdNameEntityJSONImpl(withJSONArray.getJSONObject(i)));
}
} else {
with = Collections.emptyList();
}
} catch (JSONException jsone) {