Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
package in.shop2020.storage.mongo.adapters;import in.shop2020.metamodel.core.FreeformContent;import java.lang.reflect.Type;import com.google.gson.Gson;import com.google.gson.JsonElement;import com.google.gson.JsonSerializationContext;import com.google.gson.JsonSerializer;public class FFCAdapter implements JsonSerializer<FreeformContent> {@Overridepublic JsonElement serialize(FreeformContent src, Type typeOfSrc, JsonSerializationContext context) {src.getMedias();return new Gson().toJsonTree(src);}}