mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2025-01-16 10:07:23 -05:00
21 lines
425 B
Dart
21 lines
425 B
Dart
class Contact {
|
|
String name;
|
|
String publicKey;
|
|
bool available;
|
|
|
|
Contact(this.name, this.publicKey) : available = false;
|
|
|
|
Contact.fromJson(Map<String, dynamic> json)
|
|
: name = json['name'],
|
|
publicKey = json['public_key'],
|
|
available = json['available'];
|
|
|
|
Map<String, dynamic> toJson() {
|
|
return {
|
|
'name': name,
|
|
'public_key': publicKey,
|
|
'available': available,
|
|
};
|
|
}
|
|
}
|