toJson method
Implementation
Map<String, dynamic> toJson() => {
'name': name,
if (content != null) 'content': content,
if (timestamp != null) 'timestamp': timestamp,
if (dismissTimestamp != null) 'dismissTimestamp': dismissTimestamp,
};