user_info_response.dart 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. import 'package:json_annotation/json_annotation.dart';
  2. import '../../bean/member_info.dart';
  3. part 'user_info_response.g.dart';
  4. @JsonSerializable()
  5. class UserInfoResponse {
  6. @JsonKey(name: 'userId')
  7. String? userId;
  8. @JsonKey(name: 'ssid')
  9. String? ssid;
  10. @JsonKey(name: 'deviceId')
  11. String? deviceId;
  12. @JsonKey(name: 'phone')
  13. String? phone;
  14. @JsonKey(name: 'loginStatus')
  15. int? loginStatus;
  16. @JsonKey(name: 'channelName')
  17. String? channelName;
  18. @JsonKey(name: 'gender')
  19. int? gender;
  20. @JsonKey(name: 'birthday')
  21. String? birthday;
  22. @JsonKey(name: 'intimacy')
  23. int? intimacy;
  24. @JsonKey(name: 'userIdOrSsid')
  25. String? userIdOrSsid;
  26. @JsonKey(name: 'imageUrl')
  27. String? imageUrl;
  28. @JsonKey(name: 'memberInfo')
  29. MemberInfo? memberInfo;
  30. @JsonKey(name: 'name')
  31. String? name;
  32. @JsonKey(name: 'account')
  33. String? account;
  34. UserInfoResponse(this.name,
  35. this.userId,
  36. this.ssid,
  37. this.deviceId,
  38. this.phone,
  39. this.loginStatus,
  40. this.channelName,
  41. this.gender,
  42. this.birthday,
  43. this.intimacy,
  44. this.userIdOrSsid,
  45. this.memberInfo,
  46. );
  47. factory UserInfoResponse.fromJson(Map<String, dynamic> json) =>
  48. _$UserInfoResponseFromJson(json);
  49. }