* @see com.jdroid.java.marshaller.Marshaller#marshall(java.lang.Object, com.jdroid.java.marshaller.MarshallerMode,
* java.util.Map)
*/
@Override
public JsonMap marshall(PagedResult<?> pagedResult, MarshallerMode mode, Map<String, String> extras) {
JsonMap map = new JsonMap(mode, extras);
if (CollectionUtils.isNotEmpty(pagedResult.getResults())) {
map.put(LAST_PAGE, pagedResult.isLastPage());
map.put(LIST, pagedResult.getResults());
}
return map;
}