Finish server detail page

This commit is contained in:
LollipopKit
2021-10-28 19:04:52 +08:00
parent 10a745d25a
commit 53d8268220
11 changed files with 312 additions and 73 deletions

View File

@@ -11,23 +11,25 @@ class TcpStatus {
}
*/
int? maxConn;
int? active;
int? passive;
int? fail;
late int maxConn;
late int active;
late int passive;
late int fail;
TcpStatus({
TcpStatus(
this.maxConn,
this.active,
this.passive,
this.fail,
});
);
TcpStatus.fromJson(Map<String, dynamic> json) {
maxConn = json["maxConn"]?.toInt();
active = json["active"]?.toInt();
passive = json["passive"]?.toInt();
fail = json["fail"]?.toInt();
maxConn = json["maxConn"].toInt();
active = json["active"].toInt();
passive = json["passive"].toInt();
fail = json["fail"].toInt();
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = <String, dynamic>{};
data["maxConn"] = maxConn;