toOrderType method

OrderType toOrderType()

Implementation

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