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