toJson method
Implementation
Map<String, Object?> toJson() {
final data = <String, Object?>{};
if (highlightCount != null) {
data['highlight_count'] = highlightCount;
}
if (notificationCount != null) {
data['notification_count'] = notificationCount;
}
return data;
}