toContentType method

ContentType toContentType()

Implementation

ContentType toContentType() {
  switch (this) {
    case 'image/jpeg':
      return ContentType.imageJpeg;
  }
  throw Exception('$this is not known in enum ContentType');
}