attendance_review_entity.dart 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. import 'package:domain/generated/json/base/json_field.dart';
  2. import 'package:domain/generated/json/attendance_review_entity.g.dart';
  3. import 'dart:convert';
  4. export 'package:domain/generated/json/attendance_review_entity.g.dart';
  5. @JsonSerializable()
  6. class AttendanceReviewEntity {
  7. int total = 0;
  8. List<AttendanceReviewRows> rows = [];
  9. AttendanceReviewEntity();
  10. factory AttendanceReviewEntity.fromJson(Map<String, dynamic> json) => $AttendanceReviewEntityFromJson(json);
  11. Map<String, dynamic> toJson() => $AttendanceReviewEntityToJson(this);
  12. @override
  13. String toString() {
  14. return jsonEncode(this);
  15. }
  16. }
  17. @JsonSerializable()
  18. class AttendanceReviewRows {
  19. @JSONField(name: "record_id")
  20. String? recordId;
  21. @JSONField(name: "order_id")
  22. String? orderId;
  23. @JSONField(name: "applied_id")
  24. String? appliedId;
  25. @JSONField(name: "staff_name")
  26. String? staffName;
  27. @JSONField(name: "job_title")
  28. String? jobTitle;
  29. @JSONField(name: "department_name")
  30. String? departmentName;
  31. @JSONField(name: "job_time")
  32. String? jobTime;
  33. @JSONField(name: "status_show")
  34. String? statusShow;
  35. @JSONField(name: "adjust_show")
  36. String? adjustShow;
  37. @JSONField(name: "total_show")
  38. String? totalShow;
  39. @JSONField(name: "clock_in")
  40. String? clockIn;
  41. @JSONField(name: "in_class")
  42. int? inClass;
  43. @JSONField(name: "clock_out")
  44. String? clockOut;
  45. @JSONField(name: "out_class")
  46. int? outClass;
  47. @JSONField(name: "created_at")
  48. String? createdAt;
  49. @JSONField(name: "has_reason")
  50. int? hasReason;
  51. bool isSelected = false;
  52. AttendanceReviewRows();
  53. factory AttendanceReviewRows.fromJson(Map<String, dynamic> json) => $AttendanceReviewRowsFromJson(json);
  54. Map<String, dynamic> toJson() => $AttendanceReviewRowsToJson(this);
  55. @override
  56. String toString() {
  57. return jsonEncode(this);
  58. }
  59. }