use of org.molgenis.api.model.Order.Builder in project molgenis by molgenis.
the class AttributeRequestMapperImpl method mapOrderByItem.
private Order mapOrderByItem(Map<String, String> orderbyItem) {
Builder orderBuilder = Order.builder().setId(orderbyItem.get("id"));
String order = orderbyItem.get("order");
if (order != null) {
orderBuilder.setDirection(Direction.valueOf(order));
}
return orderBuilder.build();
}
Aggregations