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