toMode method

Mode toMode()

Implementation

Mode toMode() {
  switch (this) {
    case 'DELIVERY':
      return Mode.delivery;
    case 'FILTER':
      return Mode.filter;
  }
  throw Exception('$this is not known in enum Mode');
}