Map<String, dynamic> toJson() { return { 'matchedCSSRules': matchedCSSRules.map((e) => e.toJson()).toList(), if (inlineStyle != null) 'inlineStyle': inlineStyle!.toJson(), }; }