mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2025-02-13 21:51:27 -05:00
21 lines
425 B
Dart
21 lines
425 B
Dart
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,
|
|
};
|
|
}
|
|
}
|