import 'package:json_annotation/json_annotation.dart';

part 'work_student_params.g.dart';


@JsonSerializable()
class WorkStudentParams extends Object {

  @JsonKey(name: 'AssessType')
  int assessType;

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

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

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

  @JsonKey(name: 'State')
  int? state;

  @JsonKey(name: 'StartDate')
  String? startDate;

  @JsonKey(name: 'EndDate')
  String? endDate;

  @JsonKey(name: 'CreatorId')
  String? creatorId;

  @JsonKey(name: 'PageNumber')
  int pageNumber;

  @JsonKey(name: 'PageSize')
  int pageSize;

  @JsonKey(name: 'Sorting')
  String? sorting;

  WorkStudentParams({this.assessType = 0,this.name,this.grade,this.subject,this.state,this.startDate,this.endDate,this.creatorId,this.pageNumber = 1,this.pageSize = 10,this.sorting,});

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

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

}


