import 'package:json_annotation/json_annotation.dart';
import 'package:marking_app/common/model/common/base_page_report.dart';

part 'exam_records_params.g.dart';


@JsonSerializable()
class ExamRecordsParams extends BasePageReport {

  @JsonKey(name: 'SearchStr')
  String? searchStr;

  @JsonKey(name: 'Grade')
  String? grade;

  @JsonKey(name: 'ClassId')
  int? classId;

  @JsonKey(name: 'PositionId')
  int? positionId;

  @JsonKey(name: 'ReportType')
  String? reportType;

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

  @JsonKey(name: 'TimePeriod')
  int? timePeriod;

  ExamRecordsParams({this.searchStr = '',this.grade,this.classId = -1,this.positionId = -1,this.reportType,this.subject = -1,this.timePeriod = -1,page,limit}) : super(page, limit);

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

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

}


