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