Message.fromJson constructor

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

Implementation

factory Message.fromJson(Map<String, dynamic> json) => Message(
      timeMilliSeconds: json["timeMilliSeconds"] == null
          ? null
          : TimeMilliSeconds.fromJson(json["timeMilliSeconds"]),
      sentBy: json["sentBy"],
      type: json["type"],
      msgId: json["msgId"],
      message: json["message"],
      name: json["name"],
      fileName: json["fileName"],
      contentType: json["contentType"],
      senderName: json["senderName"],
      filePath: json["filePath"],
      replyUser: json["replyUser"],
      replyMsg: json["replyMsg"],
      replyMsgId: json["replyMsgId"],
      replyUserId: json["replyUserId"],
      replyMsgType: json["replyMsgType"],
      time: json["time"],
      thumbnailPath: json["thumbnailPath"],
    );