stryctInterface = new IInterface();
stryctInterface.setName("IStruct");
Method toMapMethod = new Method();
toMapMethod.name = "toMap";
toMapMethod.returnType = new FreeTextType("Map<String,? extends Object>");// new Type( new MapType(new
// Type(String.class), new
// Type(Object.class));
stryctInterface.imports.add(new Type(Map.class));
stryctInterface.definitions.add(toMapMethod);