import 'package:json_annotation/json_annotation.dart';

part 'user_info_detail.g.dart';

@JsonSerializable()
class UserInfoDetail extends Object {
  @JsonKey(name: 'account')
  String account;

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

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

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

  @JsonKey(name: 'schoolName')
  String schoolName;

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

  @JsonKey(name: 'isActive')
  bool? isActive;

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

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

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

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

  @JsonKey(name: 'id')
  int id;

  UserInfoDetail(
    this.account,
    this.name,
    this.gender,
    this.schoolId,
    this.schoolName,
    this.lastLoginTime,
    this.isActive,
    this.accessFailedCount,
    this.lockoutEndDate,
    this.creatorName,
    this.creationTime,
    this.id,
  );

  factory UserInfoDetail.fromJson(Map<String, dynamic> srcJson) => _$UserInfoDetailFromJson(srcJson);

  Map<String, dynamic> toJson() => _$UserInfoDetailToJson(this);
}
