Query constructor

Query({
  1. int? from,
  2. int? to,
  3. Query_SortBy? sort,
  4. Query_Order? order,
  5. String? search,
})

Implementation

factory Query({
  $core.int? from,
  $core.int? to,
  Query_SortBy? sort,
  Query_Order? order,
  $core.String? search,
}) {
  final _result = create();
  if (from != null) {
    _result.from = from;
  }
  if (to != null) {
    _result.to = to;
  }
  if (sort != null) {
    _result.sort = sort;
  }
  if (order != null) {
    _result.order = order;
  }
  if (search != null) {
    _result.search = search;
  }
  return _result;
}