EMFileMessageBody.fromJson constructor

EMFileMessageBody.fromJson({
  1. required Map map,
  2. MessageType type = MessageType.FILE,
})

Implementation

EMFileMessageBody.fromJson({required Map map, super.type = MessageType.FILE})
    : super.fromJson(map: map) {
  secret = map["secret"];
  remotePath = map["remotePath"];
  fileSize = map["fileSize"];
  localPath = map["localPath"] ?? "";
  displayName = map["displayName"];
  fileStatus = DownloadStatus.values[map["fileStatus"]];
}