toJson method

Map<String, dynamic> toJson()

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(),
    };