ReplyParentChatMessage.fromJson constructor
Creates a ReplyParentChatMessage instance from a JSON map.
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: getReplyMessageType(json),
senderNickName: json["senderNickName"],
senderUserName: json["senderUserName"],
locationChatMessage: json["locationChatMessage"] == null
? null
: LocationChatMessage.fromJson(json["locationChatMessage"]),
contactChatMessage: json["contactChatMessage"] == null
? null
: ContactChatMessage.fromJson(json["contactChatMessage"]),
mediaChatMessage: json["mediaChatMessage"] == null
? null
: MediaChatMessage.fromJson(json["mediaChatMessage"]),
);