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