fromString<T> static method
Implementation
static T? fromString<T>(List<T> enumValues, String? value) {
if (value == null) return null;
return enumValues
.singleWhereOrNull((enumItem) => EnumToString.parse(enumItem) == value);
}