toTextType method

TextType toTextType()

Implementation

TextType toTextType() {
  switch (this) {
    case 'ssml':
      return TextType.ssml;
    case 'text':
      return TextType.text;
  }
  throw Exception('$this is not known in enum TextType');
}