toWakeWord method

WakeWord toWakeWord()

Implementation

WakeWord toWakeWord() {
  switch (this) {
    case 'ALEXA':
      return WakeWord.alexa;
    case 'AMAZON':
      return WakeWord.amazon;
    case 'ECHO':
      return WakeWord.echo;
    case 'COMPUTER':
      return WakeWord.computer;
  }
  throw Exception('$this is not known in enum WakeWord');
}