import 'package:json_annotation/json_annotation.dart';

part 'marking_zoom.g.dart';

@JsonSerializable()
class MarkingZoom extends Object {
  @JsonKey(name: 'questionNumber')
  String questionNumber;

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

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

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

  MarkingZoom({
    required this.scale,
    required this.dx,
    required this.dy,
    required this.questionNumber,
  });

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

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