feat: all address book logic

Signed-off-by: Kingtous <kingtous@qq.com>
This commit is contained in:
kingtous
2022-07-26 17:03:19 +08:00
committed by Kingtous
parent 1eaa9ae125
commit d0e55f6f81
5 changed files with 564 additions and 154 deletions

View File

@@ -1112,12 +1112,14 @@ class Peer {
final String username;
final String hostname;
final String platform;
final List<dynamic> tags;
Peer.fromJson(String id, Map<String, dynamic> json)
: id = id,
username = json['username'],
hostname = json['hostname'],
platform = json['platform'];
username = json['username'] ?? '',
hostname = json['hostname'] ?? '',
platform = json['platform'] ?? '',
tags = json['tags'] ?? [];
}
class Display {