EMFileMessageBody.fromJson constructor
EMFileMessageBody.fromJson({
- required Map map,
- 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"]];
}