toMap method
Implementation
Map<String, dynamic> toMap() => {
'sender': sender,
if (senderColor != null) 'senderColor': senderColor,
'target': target,
if (targetColor != null) 'targetColor': targetColor,
if (summary != null) 'summary': summary,
if (content != null) 'content': content,
};