import 'package:json_annotation/json_annotation.dart';

part 'job_collect_params.g.dart';

@JsonSerializable()
class JobCollectParams extends Object {
  @JsonKey(name: 'paperId')
  int paperId;

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

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

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

  JobCollectParams(
    this.paperId,
    this.taskId,
    this.studentId,
    this.isCollect,
  );

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

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