toMap method
Implementation
Map<String, Object?> toMap() => <String, Object?>{
'person': person.toMap(),
'conversationTitle': conversationTitle,
'groupConversation': groupConversation,
'messages': messages
?.map((m) => m.toMap()) // ignore: always_specify_types
.toList()
};