fromMap static method

ContentBlocker fromMap(
  1. Map<dynamic, Map> map
)

Implementation

static ContentBlocker fromMap(Map<dynamic, Map<dynamic, dynamic>> map) {
  return ContentBlocker(
      trigger: ContentBlockerTrigger.fromMap(
          Map<String, dynamic>.from(map["trigger"]!)),
      action: ContentBlockerAction.fromMap(
          Map<String, dynamic>.from(map["action"]!)));
}