toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'text': text,
if (active != null) 'active': active,
if (range != null) 'range': range!.toJson(),
if (styleSheetId != null) 'styleSheetId': styleSheetId!.toJson(),
};
}