import 'package:json_annotation/json_annotation.dart';

part 'marking_text_question_job_tab_params.g.dart';

@JsonSerializable(includeIfNull: false)
class MarkingTextQuestionJobTabParams extends Object {
  @JsonKey(name: 'taskId')
  int taskId;

  @JsonKey(name: 'pageIndex')
  int pageIndex;
  int? nextPageIndex; // 下一个页面
  int? previousPageIndex; // 上一个页面

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

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

  @JsonKey(name: 'defaultFirst')
  bool? isDefaultFirst;

  MarkingTextQuestionJobTabParams({
    required this.taskId,
    required this.pageIndex,
    this.isDefaultFirst,
    this.paperId,
    this.studentId,
    this.nextPageIndex,
    this.previousPageIndex,
  });

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

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