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