mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2025-08-15 17:30:22 -04:00
refactor and move stuff
This commit is contained in:
parent
8c22bf8cc0
commit
b54868cc55
28 changed files with 500 additions and 94 deletions
20
lib/entities/profile.dart
Normal file
20
lib/entities/profile.dart
Normal file
|
@ -0,0 +1,20 @@
|
|||
class Profile {
|
||||
String name;
|
||||
String publicKey;
|
||||
bool invisible;
|
||||
|
||||
Profile(this.name, this.publicKey) : invisible = false;
|
||||
|
||||
Profile.fromJson(Map<String, dynamic> json)
|
||||
: name = json['name'],
|
||||
publicKey = json['public_key'],
|
||||
invisible = json['invisible'];
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
return {
|
||||
'name': name,
|
||||
'public_key': publicKey,
|
||||
'invisible': invisible,
|
||||
};
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue