toJson method
Implementation
Map<String, dynamic> toJson() => {
'id': id,
'authorId': authorId,
'conversationId': conversationId,
'created': created,
'sent': sent?.toIso8601String(),
'received': received?.toIso8601String(),
'contentType': contentType,
'content': content
};