toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'type': type,
'origin': origin.toJson(),
'style': style.toJson(),
if (subsection != null) 'subsection': subsection,
if (name != null) 'name': name!.toJson(),
if (styleSheetId != null) 'styleSheetId': styleSheetId!.toJson(),
};
}