toSpeechMarkType method

SpeechMarkType toSpeechMarkType()

Implementation

SpeechMarkType toSpeechMarkType() {
  switch (this) {
    case 'sentence':
      return SpeechMarkType.sentence;
    case 'ssml':
      return SpeechMarkType.ssml;
    case 'viseme':
      return SpeechMarkType.viseme;
    case 'word':
      return SpeechMarkType.word;
  }
  throw Exception('$this is not known in enum SpeechMarkType');
}