toContentType method

ContentType toContentType()

Implementation

ContentType toContentType() {
  switch (this) {
    case 'PDF':
      return ContentType.pdf;
    case 'HTML':
      return ContentType.html;
    case 'MS_WORD':
      return ContentType.msWord;
    case 'PLAIN_TEXT':
      return ContentType.plainText;
    case 'PPT':
      return ContentType.ppt;
  }
  throw Exception('$this is not known in enum ContentType');
}