mirror of
https://github.com/JGeek00/adguard-home-manager.git
synced 2025-06-03 13:20:34 +00:00
Added whois info to clients model
This commit is contained in:
parent
f624f0705c
commit
9720643593
1 changed files with 15 additions and 3 deletions
|
@ -71,11 +71,23 @@ class AutoClient {
|
||||||
}
|
}
|
||||||
|
|
||||||
class WhoisInfo {
|
class WhoisInfo {
|
||||||
WhoisInfo();
|
final String? country;
|
||||||
|
final String? orgname;
|
||||||
|
|
||||||
factory WhoisInfo.fromJson(Map<String, dynamic> json) => WhoisInfo();
|
WhoisInfo({
|
||||||
|
this.country,
|
||||||
|
this.orgname,
|
||||||
|
});
|
||||||
|
|
||||||
Map<String, dynamic> toJson() => {};
|
factory WhoisInfo.fromJson(Map<String, dynamic> json) => WhoisInfo(
|
||||||
|
country: json["country"],
|
||||||
|
orgname: json["orgname"],
|
||||||
|
);
|
||||||
|
|
||||||
|
Map<String, dynamic> toJson() => {
|
||||||
|
"country": country,
|
||||||
|
"orgname": orgname,
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
class Client {
|
class Client {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue