toMode method

Mode toMode()

Implementation

Mode toMode() {
  switch (this) {
    case 'standard':
      return Mode.standard;
    case 'high-performance':
      return Mode.highPerformance;
  }
  throw Exception('$this is not known in enum Mode');
}