CombineMessageBody.fromJson constructor

CombineMessageBody.fromJson({
  1. required Map map,
})

Implementation

factory CombineMessageBody.fromJson({required Map map}) {
  var body = CombineMessageBody(
    title: map["title"],
    summary: map["summary"],
    fileStatus: ChatFileMessageBody.downloadStatusFromInt(map["fileStatus"]),
  );
  body._localPath = map["localPath"];
  body._remotePath = map["remotePath"];
  body._secret = map["secret"];

  return body;
}