Filter constructor

Filter({
  1. int? from,
  2. int? to,
  3. Filter_SortBy? sort,
  4. Filter_Order? order,
  5. String? search,
  6. String? role,
  7. bool? accepted,
})

Implementation

factory Filter({
  $core.int? from,
  $core.int? to,
  Filter_SortBy? sort,
  Filter_Order? order,
  $core.String? search,
  $core.String? role,
  $core.bool? accepted,
}) {
  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;
  }
  if (role != null) {
    _result.role = role;
  }
  if (accepted != null) {
    _result.accepted = accepted;
  }
  return _result;
}