import 'package:json_annotation/json_annotation.dart';

import '../../bean/member_info.dart';

part 'user_info_response.g.dart';

@JsonSerializable()
class UserInfoResponse {
  @JsonKey(name: 'ssid')
  String ssid;

  @JsonKey(name: 'loginStatus')
  int? loginStatus;

  @JsonKey(name: 'deviceId')
  String? deviceId;

  @JsonKey(name: 'phone')
  String? phone;

  @JsonKey(name: 'profession')
  String? profession;

  @JsonKey(name: 'post')
  String? post;

  @JsonKey(name: 'memberInfo')
  MemberInfo? memberInfo;

  UserInfoResponse(
      this.ssid, this.loginStatus, this.deviceId, this.phone, this.memberInfo);

  factory UserInfoResponse.fromJson(Map<String, dynamic> json) =>
      _$UserInfoResponseFromJson(json);
}
