RecentMessage.fromJson constructor
RecentMessage.fromJson(
- Map<String, dynamic> json
)
Implementation
factory RecentMessage.fromJson(Map<String, dynamic> json) => RecentMessage(
timeMilliSeconds: json["timeMilliSeconds"] == null
? null
: CreateAt.fromJson(json["timeMilliSeconds"]),
replyMsgId: json["replyMsgId"],
type: json["type"],
time: json["time"],
replyUser: json["replyUser"],
replyUserId: json["replyUserId"],
sentAt:
json["sentAt"] == null ? null : CreateAt.fromJson(json["sentAt"]),
viewBy: json["viewBy"] == null
? null
: List<String>.from(json["viewBy"].map((x) => x)),
senderName: json["senderName"],
replyMsg: json["replyMsg"],
msgId: json["msgId"],
message: json["message"],
sentBy: json["sentBy"],
replyMsgType: json["replyMsgType"],
);