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