import 'package:json_annotation/json_annotation.dart';

part 'job_submit_bus.g.dart';

@JsonSerializable()
class JobSubmitBus extends Object {
  @JsonKey(name: 'taskSubjectiveDetailId')
  int taskSubjectiveDetailId;

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

  @JsonKey(name: 'commentImageUrl', includeIfNull: true)
  String? commentImageUrl;

  JobSubmitBus({this.commentImageUrl, required this.taskSubjectiveDetailId, required this.score});

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

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