import 'package:json_annotation/json_annotation.dart';

part 'job_fav_student.g.dart';


@JsonSerializable()
class JobFavStudent extends Object {

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

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

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

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

  @JsonKey(name: 'items')
  List<Items> items;

  @JsonKey(name: 'hasPrevPage')
  bool hasPrevPage;

  @JsonKey(name: 'hasNextPage')
  bool hasNextPage;

  JobFavStudent(this.page,this.pageSize,this.total,this.totalPages,this.items,this.hasPrevPage,this.hasNextPage,);

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

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

}


@JsonSerializable()
class Items extends Object {

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  Items(this.id,this.teacherId,this.teacherAccount,this.folderName,this.jobId,this.jobName,this.studentId,this.studentName,this.className,this.questionPage,this.questionPicture,this.createTime,this.schoolName,this.gradeName,this.studentClassName,);

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

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

}


