public class FavouriteUnmarshaller extends AbstractUnmarshaller<Favourite> {
@Override
protected Favourite parse(Object json) {
WSUtils utils = WSUtils.getINSTANCE();
return new Favourite()
.setId(utils.getInteger(json, "id"))
.setKey(utils.getString(json, "key"))
.setName(utils.getString(json, "name"))
.setScope(utils.getString(json, "scope"))
.setQualifier(utils.getString(json, "qualifier"))