putInt(json, PROP_PAGE_SIZE, $(representation).getPageSize());
return json;
}
public Object fromJson(JSONObject json) {
PageStatisticsRepresentation representation = new PageStatisticsRepresentation();
representation.setTotalPages(getInt(json, PROP_TOTAL_PAGES));
representation.setCurrentPage(getInt(json, PROP_CURRENT_PAGE));
representation.setPageSize(getInt(json, PROP_PAGE_SIZE));
return representation;
}