EMFileMessageBody.fromJson constructor

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

Implementation

EMFileMessageBody.fromJson(
    {required Map map, EMMessageBodyType type = EMMessageBodyType.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'],
  );
}