fromValue static method

Implementation

static ContentBlockerTriggerResourceType? fromValue(String value) {
  return ([
    "document",
    "image",
    "style-sheet",
    "script",
    "font",
    "media",
    "svg-document",
    "raw",
  ].contains(value))
      ? ContentBlockerTriggerResourceType._(value)
      : null;
}