feat: Initial commit

This commit is contained in:
cialloo
2024-07-20 12:45:47 +08:00
commit 0ae1adeb32
40 changed files with 3400 additions and 0 deletions

27
lib/saved_connection.dart Normal file
View File

@@ -0,0 +1,27 @@
class SavedConnection {
final String name;
final String supernode;
final String community;
final String communityKey;
final String selfAddress;
SavedConnection(this.name, this.supernode, this.community, this.communityKey,
this.selfAddress);
factory SavedConnection.fromJson(Map<String, dynamic> json) =>
SavedConnection(
json['name'] as String,
json['supernode'] as String,
json['community'] as String,
json['communityKey'] as String,
json['selfAddress'] as String,
);
Map<String, dynamic> toJson() => {
'name': name,
'supernode': supernode,
'community': community,
'communityKey': communityKey,
'selfAddress': selfAddress,
};
}