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