import 'package:json_annotation/json_annotation.dart';

part 'exam_records.g.dart';


@JsonSerializable()
class ExamRecords extends Object {

  @JsonKey(name: 'Classes')
  String classes;

  @JsonKey(name: 'ClassIds')
  Map classIds;

  @JsonKey(name: 'Id')
  int id;

  @JsonKey(name: 'UserId')
  int userId;

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

  @JsonKey(name: 'Type')
  int type;

  @JsonKey(name: 'TypeName')
  String typeName;

  @JsonKey(name: 'Grade')
  String grade;

  @JsonKey(name: 'Subjects')
  String subjects;

  @JsonKey(name: 'SubjectStr')
  String subjectStr;

  @JsonKey(name: 'StartTime')
  String startTime;

  @JsonKey(name: 'StartTimeStr')
  String startTimeStr;

  @JsonKey(name: 'Status')
  int status;

  @JsonKey(name: 'StatusName')
  String statusName;

  @JsonKey(name: 'CreateTime')
  String createTime;

  ExamRecords(this.classes,this.classIds,this.id,this.userId,this.name,this.type,this.typeName,this.grade,this.subjects,this.subjectStr,this.startTime,this.startTimeStr,this.status,this.statusName,this.createTime,);

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

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

}


