toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'selectorList': selectorList.toJson(),
'origin': origin.toJson(),
'style': style.toJson(),
if (styleSheetId != null) 'styleSheetId': styleSheetId!.toJson(),
if (nestingSelectors != null) 'nestingSelectors': [...?nestingSelectors],
if (media != null) 'media': media!.map((e) => e.toJson()).toList(),
if (containerQueries != null)
'containerQueries': containerQueries!.map((e) => e.toJson()).toList(),
if (supports != null)
'supports': supports!.map((e) => e.toJson()).toList(),
if (layers != null) 'layers': layers!.map((e) => e.toJson()).toList(),
if (scopes != null) 'scopes': scopes!.map((e) => e.toJson()).toList(),
if (ruleTypes != null)
'ruleTypes': ruleTypes!.map((e) => e.toJson()).toList(),
};
}