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