fromNativeValue static method
Gets a possible PermissionResourceType instance from a native value.
Implementation
static PermissionResourceType? fromNativeValue(dynamic value) {
if (value != null) {
try {
return PermissionResourceType.values
.firstWhere((element) => element.toNativeValue() == value);
} catch (e) {
return null;
}
}
return null;
}