toJson method

Map<String, dynamic> toJson()

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(),
  };
}