import 'package:json_annotation/json_annotation.dart';

part 'student_history_params.g.dart';


@JsonSerializable()
class StudentHistoryParams extends Object {

  @JsonKey(name: 'Subject')
  int? subject;

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

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

  @JsonKey(name: 'DateEnd')
  String? dateEnd;

  @JsonKey(name: 'AssessType')
  int assessType;

  @JsonKey(name: 'PageNumber')
  int pageNumber;

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

  StudentHistoryParams({this.subject,this.studentId = -1,this.dateStart = '',this.dateEnd,this.assessType = 0,this.pageNumber = 1,this.pageSize = 10});

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

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

}


