use of ai.elimu.model.project.AppGroup in project webapp by elimu-ai.
the class JavaToGsonConverter method getAppCategoryGson.
public static AppCategoryGson getAppCategoryGson(AppCategory appCategory) {
if (appCategory == null) {
return null;
} else {
AppCategoryGson appCategoryGson = new AppCategoryGson();
appCategoryGson.setId(appCategory.getId());
appCategoryGson.setName(appCategory.getName());
List<AppGroupGson> appGroups = new ArrayList<>();
for (AppGroup appGroup : appCategory.getAppGroups()) {
AppGroupGson appGroupGson = getAppGroupGson(appGroup);
appGroups.add(appGroupGson);
}
appCategoryGson.setAppGroups(appGroups);
return appCategoryGson;
}
}
Aggregations