toContentType method
Implementation
ContentType toContentType() {
switch (this) {
case 'PlainText':
return ContentType.plainText;
case 'SSML':
return ContentType.ssml;
case 'CustomPayload':
return ContentType.customPayload;
}
throw Exception('$this is not known in enum ContentType');
}