Subversion Repositories SmartDukaan

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
8749 amit.gupta 1
package in.shop2020.storage.mongo.adapters;
2
 
3
import in.shop2020.metamodel.core.FreeformContent;
4
 
5
import java.lang.reflect.Type;
6
 
7
import com.google.gson.Gson;
8
import com.google.gson.JsonElement;
9
import com.google.gson.JsonSerializationContext;
10
import com.google.gson.JsonSerializer;
11
 
12
public class FFCAdapter implements JsonSerializer<FreeformContent> {
13
    @Override
14
    public JsonElement serialize(FreeformContent src, Type typeOfSrc, JsonSerializationContext context) {
15
    	src.getMedias();
16
        return new Gson().toJsonTree(src);
17
    }
18
 
19
}