import 'package:json_annotation/json_annotation.dart';

part 'class_item.g.dart';


@JsonSerializable()
class ClassItem extends Object {

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

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

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

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

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

  @JsonKey(name: 'subject')
  int? subject;

  ClassItem(this.id,this.schoolName,this.grade,this.className,this.subject,this.classId);

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

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

}


