config_data.dart 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. class AttendanceV2Config {
  2. String? id;
  3. bool? appealEnable;
  4. int? appealMaxTimes;
  5. String? processId;
  6. String? processName;
  7. bool? onDutyFastCheckInEnable;
  8. bool? offDutyFastCheckInEnable;
  9. bool? checkInAlertEnable;
  10. bool? exceptionAlertEnable;
  11. String? exceptionAlertTime;
  12. String? exceptionAlertDate;
  13. String? createTime;
  14. String? updateTime;
  15. bool? closeOldAttendance; // 是否关闭旧版考勤
  16. AttendanceV2Config({
  17. this.id,
  18. this.appealEnable,
  19. this.appealMaxTimes,
  20. this.processId,
  21. this.processName,
  22. this.onDutyFastCheckInEnable,
  23. this.offDutyFastCheckInEnable,
  24. this.checkInAlertEnable,
  25. this.exceptionAlertEnable,
  26. this.exceptionAlertTime,
  27. this.exceptionAlertDate,
  28. this.createTime,
  29. this.updateTime,
  30. this.closeOldAttendance,
  31. });
  32. factory AttendanceV2Config.fromJson(Map<String, dynamic> json) => AttendanceV2Config(
  33. id: json["id"],
  34. appealEnable: json["appealEnable"],
  35. appealMaxTimes: json["appealMaxTimes"],
  36. processId: json["processId"],
  37. processName: json["processName"],
  38. onDutyFastCheckInEnable: json["onDutyFastCheckInEnable"],
  39. offDutyFastCheckInEnable: json["offDutyFastCheckInEnable"],
  40. checkInAlertEnable: json["checkInAlertEnable"],
  41. exceptionAlertEnable: json["exceptionAlertEnable"],
  42. exceptionAlertTime: json["exceptionAlertTime"],
  43. exceptionAlertDate: json["exceptionAlertDate"],
  44. createTime: json["createTime"] ,
  45. updateTime: json["updateTime"],
  46. closeOldAttendance: json["closeOldAttendance"],
  47. );
  48. Map<String, dynamic> toJson() => {
  49. "id": id,
  50. "appealEnable": appealEnable,
  51. "appealMaxTimes": appealMaxTimes,
  52. "processId": processId,
  53. "processName": processName,
  54. "onDutyFastCheckInEnable": onDutyFastCheckInEnable,
  55. "offDutyFastCheckInEnable": offDutyFastCheckInEnable,
  56. "checkInAlertEnable": checkInAlertEnable,
  57. "exceptionAlertEnable": exceptionAlertEnable,
  58. "exceptionAlertTime": exceptionAlertTime,
  59. "exceptionAlertDate": exceptionAlertDate,
  60. "createTime": createTime,
  61. "updateTime": updateTime,
  62. "closeOldAttendance": closeOldAttendance,
  63. };
  64. }