ReplyParentChatMessage.fromJson constructor

ReplyParentChatMessage.fromJson(
  1. Map<String, dynamic> json
)

Converts a JSON object into a ReplyParentChatMessage instance.

Implementation

factory ReplyParentChatMessage.fromJson(Map<String, dynamic> json) =>
    ReplyParentChatMessage(
      chatUserJid: json["chatUserJid"],
      isMessageDeleted: json["isMessageDeleted"],
      isMessageRecalled: json["isMessageRecalled"],
      isMessageSentByMe: json["isMessageSentByMe"],
      isMessageStarred: json["isMessageStarred"],
      messageId: json["messageId"],
      messageSentTime: json["messageSentTime"],
      messageTextContent: json["messageTextContent"],
      messageType: json["messageType"],
      senderNickName: json["senderNickName"],
      senderUserName: json["senderUserName"],
      locationChatMessage: json["locationChatMessage"],
      contactChatMessage: json["contactChatMessage"],
      mediaChatMessage: json["mediaChatMessage"] == null
          ? null
          : MediaChatMessage.fromJson(json["mediaChatMessage"]),
    );