import 'package:json_annotation/json_annotation.dart';

part 'annotation_graffiti_switch.g.dart';

// 审批涂鸦开关类
@JsonSerializable()
class AnnotationGraffitiSwitch extends Object {
  // 是否打开工具
  @JsonKey(name: 'annotationSwitch')
  bool annotationSwitch;

  // 打开画笔
  @JsonKey(name: 'openBrush')
  bool openBrush;

  // 打开橡皮擦
  @JsonKey(name: 'openEraser')
  bool openEraser;

  // 清空全部
  @JsonKey(name: 'openClearAll')
  bool openClearAll;

  // 放大镜
  @JsonKey(name: 'magnifier')
  bool magnifier;

  // 笔记回显
  @JsonKey(name: 'trajectoryDisplay')
  bool trajectoryDisplay;

  AnnotationGraffitiSwitch({
    this.annotationSwitch = false,
    this.openBrush = false,
    this.openEraser = false,
    this.openClearAll = false,
    this.magnifier = false,
    this.trajectoryDisplay = false,
  });
  factory AnnotationGraffitiSwitch.fromJson(Map<String, dynamic> srcJson) =>
      _$AnnotationGraffitiSwitchFromJson(srcJson);
  Map<String, dynamic> toJson() => _$AnnotationGraffitiSwitchToJson(this);
}
