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

part 'review_records_params.g.dart';

@JsonSerializable()
class ReviewRecordsParams extends BasePage {
  @JsonKey(name: 'QuestionNum')
  String questionNum;

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

  ReviewRecordsParams({required page, required limit, required this.questionNum, required this.markingUserId})
      : super(page, limit);

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

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