toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      "chatUserJid": chatUserJid,
      "contactType": contactType,
      "isItCarbonMessage": isItCarbonMessage,
      "isItSavedContact": isItSavedContact,
      "isMessageDeleted": isMessageDeleted,
      "isMessageRecalled": isMessageRecalled,
      "isMessageSentByMe": isMessageSentByMe,
      "isMessageStarred": isMessageStarred,
      "isSelected": isSelected,
      "isThisAReplyMessage": isThisAReplyMessage,
      "messageChatType": messageChatType,
      "messageCustomField": messageCustomField,
      "messageId": messageId,
      "messageSentTime": messageSentTime,
      "messageStatus": messageStatus,
      "messageTextContent": messageTextContent,
      "messageType": messageType,
      "replyParentChatMessage": replyParentChatMessage ?? replyParentChatMessage?.toJson(),
      "senderNickName": senderNickName,
      "senderUserJid": senderUserJid,
      "senderUserName": senderUserName,
      "contactChatMessage": contactChatMessage == null ? null : contactChatMessage!.toJson(),
      "mediaChatMessage": mediaChatMessage == null ? null : mediaChatMessage!.toJson(),
      "locationChatMessage": locationChatMessage == null ? null : locationChatMessage!.toJson(),
    };