toJson method
Converts a ReplyParentChatMessage instance to a JSON map.
Implementation
Map<String, dynamic> toJson() => {
"chatUserJid": chatUserJid,
"isMessageDeleted": isMessageDeleted,
"isMessageRecalled": isMessageRecalled,
"isMessageSentByMe": isMessageSentByMe,
"isMessageStarred": isMessageStarred,
"messageId": messageId,
"messageSentTime": messageSentTime,
"messageTextContent": messageTextContent,
"messageType": messageType,
"senderNickName": senderNickName,
"senderUserName": senderUserName,
"locationChatMessage":
locationChatMessage ?? locationChatMessage?.toJson(),
"contactChatMessage":
contactChatMessage ?? contactChatMessage?.toJson(),
"mediaChatMessage": mediaChatMessage ?? mediaChatMessage?.toJson(),
};