fromValue static method
- String? value
Gets a possible PermissionResourceType instance from String value.
Implementation
static PermissionResourceType? fromValue(String? value) {
if (value != null) {
try {
return PermissionResourceType.values.firstWhere(
(element) => element.toValue() == value,
);
} catch (e) {
return null;
}
}
return null;
}