user_info_response.dart 630 B

1234567891011121314151617181920212223242526272829
  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: 'ssid')
  7. String ssid;
  8. @JsonKey(name: 'loginStatus')
  9. int? loginStatus;
  10. @JsonKey(name: 'deviceId')
  11. String? deviceId;
  12. @JsonKey(name: 'phone')
  13. String? phone;
  14. @JsonKey(name: 'memberInfo')
  15. MemberInfo? memberInfo;
  16. UserInfoResponse(
  17. this.ssid, this.loginStatus, this.deviceId, this.phone, this.memberInfo);
  18. factory UserInfoResponse.fromJson(Map<String, dynamic> json) =>
  19. _$UserInfoResponseFromJson(json);
  20. }