mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-17 15:24:35 +01:00
remove useless function
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user