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