toOrder method

Order toOrder()

Implementation

Order toOrder() {
  switch (this) {
    case 'ASCENDING':
      return Order.ascending;
    case 'DESCENDING':
      return Order.descending;
  }
  throw Exception('$this is not known in enum Order');
}