toJson method
override
Implementation
@override
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = super.toJson();
data.putIfNotNull("secret", this.secret);
data.putIfNotNull("remotePath", this.remotePath);
data.putIfNotNull("fileSize", this.fileSize);
data.putIfNotNull("localPath", this.localPath);
data.putIfNotNull("displayName", this.displayName);
data.putIfNotNull("fileStatus", downloadStatusToInt(this.fileStatus));
return data;
}