import 'package:json_annotation/json_annotation.dart';

part 'job_favorite_model.g.dart';

@JsonSerializable()
class JobFavoriteModel extends Object {
  @JsonKey(name: 'schoolId')
  int schoolId;

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

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

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

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

  JobFavoriteModel(
    this.schoolId,
    this.gradeId,
    this.graduationYear,
    this.className,
    this.count,
  );

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

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