import 'package:json_annotation/json_annotation.dart';

part 'review_records_item.g.dart';

@JsonSerializable()
class ReviewRecordsItem extends Object {
  @JsonKey(name: 'markingUserDetailId')
  int markingUserDetailId;

  @JsonKey(name: 'paperNum')
  String paperNum;

  @JsonKey(name: 'finishTime')
  String finishTime;

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

  @JsonKey(name: 'score')
  double score;

  ReviewRecordsItem(
    this.markingUserDetailId,
    this.paperNum,
    this.finishTime,
    this.sort,
    this.score,
  );

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

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