toMap method
Implementation
Map<String, dynamic> toMap() {
return <String, dynamic>{
'messageType': messageType.index,
'message': message,
'messageTime': messageTime,
'filePath': filePath,
'platform': platform,
'name': name,
'conversationUid': conversationUid,
};
}