"AjPageable property rowCount was not found in json data"));
out.setRowPerPage(Helper.getIntRequired(jsonObject, "rowPerPage",
"AjPageable property rowPerPage was not found in json data"));
JSONValue list = jsonObject.get("currentPage");
if (list == null) {
throw new MapperException(
"AjPageable property currentPage was not found in json data");
} else {
out.setCurrentPage(new ArrayList<AjLegoBox>());
JSONArray array = (JSONArray) list;
for (JSONValue jsonValue : array.getValue()) {
out.getCurrentPage().add(
(AjLegoBox) JSONMapper.toJava(jsonValue, AjLegoBox.class));
}
}
return out;
}
throw new MapperException("AjPropertyValue cannot map: " + aValue.getClass().getName());
}