fromString method
Implementation
POICategory? fromString(String? value) {
if (value == null) return null;
try {
return POICategory.values.firstWhere((e) => e.value == value);
} catch (e) {
return null;
}
}
POICategory? fromString(String? value) {
if (value == null) return null;
try {
return POICategory.values.firstWhere((e) => e.value == value);
} catch (e) {
return null;
}
}