Encrypted messaging app
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
373 B

  1. class UserSearch {
  2. String id;
  3. String username;
  4. String publicKey;
  5. UserSearch({
  6. required this.id,
  7. required this.username,
  8. required this.publicKey,
  9. });
  10. factory UserSearch.fromJson(Map<String, dynamic> json) {
  11. return UserSearch(
  12. id: json['id'],
  13. username: json['username'],
  14. publicKey: json['asymmetric_public_key'],
  15. );
  16. }
  17. }