static List<T?> fromList<T>(List<T> enumValues, List<String> valueList) { return List<T?>.from( valueList.map<T?>((String item) => fromString(enumValues, item))); }