user_info_response.dart 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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. UserInfoResponse(
  31. this.userId,
  32. this.ssid,
  33. this.deviceId,
  34. this.phone,
  35. this.loginStatus,
  36. this.channelName,
  37. this.gender,
  38. this.birthday,
  39. this.intimacy,
  40. this.userIdOrSsid,
  41. this.memberInfo,
  42. );
  43. factory UserInfoResponse.fromJson(Map<String, dynamic> json) =>
  44. _$UserInfoResponseFromJson(json);
  45. }