camp_vip_user.dart 992 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /// rank : 1
  2. /// userAvatar : "http://user.qn.timichat.net/avatar/418082988228608/1640602657073.png"
  3. /// userId : 418082988228608
  4. /// userName : "明愁吃滴休息"
  5. class CampVipUser {
  6. CampVipUser({
  7. int? rank,
  8. String? userAvatar,
  9. int? userId,
  10. String? userName,}){
  11. _rank = rank;
  12. _userAvatar = userAvatar;
  13. _userId = userId;
  14. _userName = userName;
  15. }
  16. CampVipUser.fromJson(dynamic json) {
  17. _rank = json['rank'];
  18. _userAvatar = json['userAvatar'];
  19. _userId = json['userId'];
  20. _userName = json['userName'];
  21. }
  22. int? _rank;
  23. String? _userAvatar;
  24. int? _userId;
  25. String? _userName;
  26. int? get rank => _rank;
  27. String? get userAvatar => _userAvatar;
  28. int? get userId => _userId;
  29. String? get userName => _userName;
  30. Map<String, dynamic> toJson() {
  31. final map = <String, dynamic>{};
  32. map['rank'] = _rank;
  33. map['userAvatar'] = _userAvatar;
  34. map['userId'] = _userId;
  35. map['userName'] = _userName;
  36. return map;
  37. }
  38. }