V2TimMessageDownloadProgress.fromJson constructor

V2TimMessageDownloadProgress.fromJson(
  1. Map json
)

Implementation

V2TimMessageDownloadProgress.fromJson(Map json) {
  json = Utils.formatJson(json);
  isFinish = json["isFinish"];
  isError = json["isError"];
  msgID = json["msgID"];
  currentSize = json["currentSize"];
  totalSize = json["totalSize"];
  type = json["type"];
  isSnapshot = json["isSnapshot"];
  path = json["path"];
  errorCode = json["errorCode"];
  errorDesc = json["errorDesc"];
}