RuleMatch.fromJson constructor

RuleMatch.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory RuleMatch.fromJson(Map<String, dynamic> json) {
  return RuleMatch(
    rule: CSSRule.fromJson(json['rule'] as Map<String, dynamic>),
    matchingSelectors:
        (json['matchingSelectors'] as List).map((e) => e as int).toList(),
  );
}