@@ -0,0 +1,2451 @@
+package gr.demokritos.iit.ydsapi.model;%0A%0Aimport com.google.gson.*;%0A%0Aimport java.lang.reflect.Type;%0Aimport java.util.Objects;%0A%0Apublic class DashboardConfig %7B%0A    private final String title;%0A    private final String cookiesObject;%0A%0A    public DashboardConfig(String title, String cookiesObject) %7B%0A        this.title = title;%0A        this.cookiesObject = cookiesObject;%0A    %7D%0A%0A    public String getTitle() %7B%0A        return title;%0A    %7D%0A%0A    public String getCookiesObject() %7B%0A        return cookiesObject;%0A    %7D%0A%0A    @Override%0A    public String toString() %7B%0A        return %22DashboardConfig%7B%22 + title + %22:%22 + cookiesObject + %22%7D%22;%0A    %7D%0A%0A    public String toJSON() %7B%0A        GsonBuilder gsonBuilder = new GsonBuilder();%0A        gsonBuilder%0A                .registerTypeAdapter(DashboardConfig.class, new DashboardConfigSerializer())%0A                .disableHtmlEscaping()%0A                .setPrettyPrinting();%0A        Gson gson = gsonBuilder.create();%0A%0A        return gson.toJson(this);%0A    %7D%0A%0A    @Override%0A    public int hashCode() %7B%0A        int hash = 3;%0A        hash = 17 * hash + Objects.hashCode(this.title);%0A        hash = 17 * hash + Objects.hashCode(this.cookiesObject);%0A        return hash;%0A    %7D%0A%0A    @Override%0A    public boolean equals(Object obj) %7B%0A        if (obj == null) %7B%0A            return false;%0A        %7D%0A        if (getClass() != obj.getClass()) %7B%0A            return false;%0A        %7D%0A        final DashboardConfig other = (DashboardConfig) obj;%0A        if (!Objects.equals(this.title, other.title)) %7B%0A            return false;%0A        %7D%0A        return Objects.equals(this.cookiesObject, other.cookiesObject);%0A    %7D%0A%0A    public static final String FLD_TITLE = %22title%22;%0A    public static final String FLD_PARAMS = %22parameters%22;%0A%0A    /**%0A     * Helper class to serialize as needed in the API%0A     */%0A    class DashboardConfigSerializer implements JsonSerializer%3CDashboardConfig%3E %7B%0A        @Override%0A        public JsonElement serialize(DashboardConfig dc, Type type, JsonSerializationContext jsc) %7B%0A            final JsonObject jsonObject = new JsonObject();%0A%0A            // Add title%0A            jsonObject.addProperty(DashboardConfig.FLD_TITLE, dc.getTitle());%0A%0A            // Add parameters. Should be a JSON object, so we always parse it%0A            jsonObject.add(FLD_PARAMS, new JsonParser()%0A                    .parse(dc.getCookiesObject())%0A                    .getAsJsonObject());%0A            return jsonObject;%0A        %7D%0A    %7D%0A%7D%0A

Add DashboardConfig model class to Backend Utilities