ChatFileMessageBody.fromJson constructor
ChatFileMessageBody.fromJson({ - required Map map,
- MessageType type = MessageType.FILE,
})
Implementation
ChatFileMessageBody.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 =
ChatFileMessageBody.downloadStatusFromInt(map["fileStatus"]);
}