contentTypeFromString function
Implementation
ContentType contentTypeFromString(String value) {
return ContentType.values.firstWhere(
(e) => e.toString().split('.')[1].toUpperCase() == value.toUpperCase());
}
ContentType contentTypeFromString(String value) {
return ContentType.values.firstWhere(
(e) => e.toString().split('.')[1].toUpperCase() == value.toUpperCase());
}