Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 
 
 

38 lignes
801 B

  1. import 'package:json_annotation/json_annotation.dart';
  2. part 'user.g.dart';
  3. @JsonSerializable()
  4. class User {
  5. String? avatar;
  6. int? createtime;
  7. String? language;
  8. int? lastbettime;
  9. String? mail;
  10. String? name;
  11. String? phone;
  12. String? uid;
  13. String? wxopenid;
  14. User({
  15. this.avatar,
  16. this.createtime,
  17. this.language,
  18. this.lastbettime,
  19. this.mail,
  20. this.name,
  21. this.phone,
  22. this.uid,
  23. this.wxopenid,
  24. });
  25. @override
  26. String toString() {
  27. return 'User(avatar: $avatar, createtime: $createtime, language: $language, lastbettime: $lastbettime, mail: $mail, name: $name, phone: $phone, uid: $uid, wxopenid: $wxopenid)';
  28. }
  29. factory User.fromJson(Map<String, dynamic> json) => _$UserFromJson(json);
  30. Map<String, dynamic> toJson() => _$UserToJson(this);
  31. }