import 'package:json_annotation/json_annotation.dart';

part 'marking_history_zoom_info.g.dart';

@JsonSerializable()
class MarkingHistoryZoomInfo extends Object {
  @JsonKey(name: 'markingUserId')
  int markingUserId;

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

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

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

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

  MarkingHistoryZoomInfo({
    required this.markingUserId,
    required this.questionNum,
    required this.scale,
    required this.positionY,
    required this.positionX,
  });

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

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