import 'package:json_annotation/json_annotation.dart';

part 'rating_progress_model.g.dart';

@JsonSerializable()
class RatingProgressModel extends Object {
  @JsonKey(name: 'questionNum')
  String questionNum;

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

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

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

  RatingProgressModel(
    this.questionNum,
    this.avgScore,
    this.schedule,
    this.myAvgScore,
  );

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

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