/*
 * @Author: wangyang 1147192855@qq.com
 * @Date: 2022-07-22 15:19:54
 * @LastEditors: wangyang 1147192855@qq.com
 * @LastEditTime: 2022-07-27 12:26:15
 * @FilePath: \marking_app\lib\common\model\marking\marking_text_question_params.dart
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import 'package:json_annotation/json_annotation.dart';

part 'marking_text_question_params.g.dart';

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

  @JsonKey(name: 'MarkingUserDetailId')
  int? markingUserDetailId;

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

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

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

  MarkingTextQuestionParams({
    required this.markingUserId,
    this.pageType,
    this.markingUserDetailId,
    this.type,
    this.isReview = false,
  });

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

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