toMap method
Implementation
Map<String, dynamic> toMap() {
return {
'mid': mid,
'content': content,
'imageUrl': imageUrl,
'voiceUrl': voiceUrl,
'videoUrl': videoUrl,
'fileUrl': fileUrl,
'nickname': nickname,
'avatar': avatar,
'type': type,
'topic': thread?.topic,
'status': status,
'timestamp': timestamp,
'isSend': isSend,
'currentUid': currentUid,
'client': client,
'answers': answersJson,
'categories': categoriesJson
};
}