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.

39 lines
735B

  1. import 'package:json_annotation/json_annotation.dart';
  2. part 'account.g.dart';
  3. @JsonSerializable()
  4. class Account {
  5. Account();
  6. num id;
  7. String login;
  8. String firstName;
  9. String lastName;
  10. String midleName;
  11. String fullName;
  12. String telephone;
  13. String address;
  14. String avartar;
  15. num vaiTroId;
  16. String tenVaiTro;
  17. num donViCanhTacId;
  18. String tenDonVi;
  19. String email;
  20. String imageUrl;
  21. bool activated;
  22. int countryId;
  23. String countryName;
  24. int cityId;
  25. String cityName;
  26. int districtId;
  27. String districtName;
  28. int wardId;
  29. String wardName;
  30. List authorities;
  31. factory Account.fromJson(Map<String, dynamic> json) =>
  32. _$AccountFromJson(json);
  33. Map<String, dynamic> toJson() => _$AccountToJson(this);
  34. }