/*
 * @Author: wangyang 1147192855@qq.com
 * @Date: 2022-07-14 10:44:46
 * @LastEditors: wangyang 1147192855@qq.com
 * @LastEditTime: 2022-07-19 20:17:48
 * @FilePath: \marking_app\lib\common\model\user\user_info.dart
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import 'package:json_annotation/json_annotation.dart'; 
  
part 'user_info.g.dart';


@JsonSerializable(checked: true)
  class UserInfo extends Object {

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

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

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

  @JsonKey(name: 'subjectIds')
  List<int> subjectIds;

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

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


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

  @JsonKey(name: 'positionNames')
  List<String> positionNames;
  

  UserInfo(this.id,this.userName,this.loginName,this.subjectIds,this.schoolId,this.schoolName,this.avatar,this.positionNames);

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

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

}

  
