toRunningMode method

RunningMode toRunningMode()

Implementation

RunningMode toRunningMode() {
  switch (this) {
    case 'AUTO_STOP':
      return RunningMode.autoStop;
    case 'ALWAYS_ON':
      return RunningMode.alwaysOn;
  }
  throw Exception('$this is not known in enum RunningMode');
}