remove useless function

This commit is contained in:
LollipopKit
2021-10-31 21:40:36 +08:00
parent 2eb6e19a86
commit 1943fde6eb
9 changed files with 46 additions and 71 deletions

View File

@@ -25,23 +25,4 @@ class DiskInfo {
this.size,
this.avail,
);
DiskInfo.fromJson(Map<String, dynamic> json) {
mountPath = json["mountPath"].toString();
mountLocation = json["mountLocation"].toString();
usedPercent = int.parse(json["usedPercent"]);
used = json["used"].toString();
size = json["size"].toString();
avail = json["avail"].toString();
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = <String, dynamic>{};
data["mountPath"] = mountPath;
data["mountLocation"] = mountLocation;
data["usedPercent"] = usedPercent;
data["used"] = used;
data["size"] = size;
data["avail"] = avail;
return data;
}
}