toOrderKey method

OrderKey toOrderKey()

Implementation

OrderKey toOrderKey() {
  switch (this) {
    case 'Ascending':
      return OrderKey.ascending;
    case 'Descending':
      return OrderKey.descending;
  }
  throw Exception('$this is not known in enum OrderKey');
}