Bugs fixed

This commit is contained in:
Juan Gilsanz Polo 2023-11-15 18:16:43 +01:00
parent c1950fdc2b
commit 1ea71265e2
6 changed files with 54 additions and 36 deletions

View file

@ -76,7 +76,7 @@ class DhcpStatus {
v6: json["v6"] != null ? IpVersion.fromJson(json["v6"]) : null,
leases: List<Lease>.from(json["leases"].map((x) => Lease.fromJson(x))),
staticLeases: List<Lease>.from(json["static_leases"].map((x) => Lease.fromJson(x))),
enabled: json["enabled"],
enabled: json["enabled"] ?? false,
);
Map<String, dynamic> toJson() => {