@Override public JsonElement view(Functionality obj, JsonBuilder ctx) { JsonObject json = new JsonObject(); json.addProperty("provider", obj.getProvider()); json.addProperty("key", obj.getKey()); json.addProperty("group", obj.getAccessGroup()); json.addProperty("title", obj.getTitle().getContent()); json.addProperty("description", obj.getDescription().getContent()); return json; }