import 'package:json_annotation/json_annotation.dart';

part 'marked_item.g.dart';

@JsonSerializable()
class MarkedItem extends Object {
  @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: 'Subjects')
  String subjects;

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

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

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

  MarkedItem(this.id, this.userId, this.name, this.type, this.typeName, this.subjects, this.startTime, this.status, this.statusName);

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

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