statistic_info.dart 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. class AttendanceV2RequestStatistic {
  2. String? startDate;
  3. String? endDate;
  4. AttendanceV2RequestStatistic({this.startDate, this.endDate});
  5. factory AttendanceV2RequestStatistic.fromJson(Map<String, dynamic> json) => AttendanceV2RequestStatistic(
  6. startDate: json["startDate"],
  7. endDate: json["endDate"],
  8. );
  9. Map<String, dynamic> toJson() => {
  10. "startDate": startDate,
  11. "endDate": endDate,
  12. };
  13. }
  14. class AttendanceV2Statistic {
  15. String? userId;
  16. int? workTimeDuration;
  17. String? averageWorkTimeDuration;
  18. int? attendance;
  19. int? rest;
  20. int? absenteeismDays;
  21. int? lateTimes;
  22. int? leaveEarlierTimes;
  23. int? absenceTimes;
  24. int? fieldWorkTimes;
  25. int? leaveDays;
  26. int? appealNums;
  27. AttendanceV2Statistic({
  28. this.userId,
  29. this.workTimeDuration,
  30. this.averageWorkTimeDuration,
  31. this.attendance,
  32. this.rest,
  33. this.absenteeismDays,
  34. this.lateTimes,
  35. this.leaveEarlierTimes,
  36. this.absenceTimes,
  37. this.fieldWorkTimes,
  38. this.leaveDays,
  39. this.appealNums,
  40. });
  41. factory AttendanceV2Statistic.fromJson(Map<String, dynamic> json) => AttendanceV2Statistic(
  42. userId: json["userId"],
  43. workTimeDuration: json["workTimeDuration"],
  44. averageWorkTimeDuration: json["averageWorkTimeDuration"],
  45. attendance: json["attendance"],
  46. rest: json["rest"],
  47. absenteeismDays: json["absenteeismDays"],
  48. lateTimes: json["lateTimes"],
  49. leaveEarlierTimes: json["leaveEarlierTimes"],
  50. absenceTimes: json["absenceTimes"],
  51. fieldWorkTimes: json["fieldWorkTimes"],
  52. leaveDays: json["leaveDays"],
  53. appealNums: json["appealNums"],
  54. );
  55. Map<String, dynamic> toJson() => {
  56. "userId": userId,
  57. "workTimeDuration": workTimeDuration,
  58. "averageWorkTimeDuration": averageWorkTimeDuration,
  59. "attendance": attendance,
  60. "rest": rest,
  61. "absenteeismDays": absenteeismDays,
  62. "lateTimes": lateTimes,
  63. "leaveEarlierTimes": leaveEarlierTimes,
  64. "absenceTimes": absenceTimes,
  65. "fieldWorkTimes": fieldWorkTimes,
  66. "leaveDays": leaveDays,
  67. "appealNums": appealNums,
  68. };
  69. }