user_info_response.dart 1.0 KB

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