labour_review_status_entity.dart 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. import 'package:domain/generated/json/base/json_field.dart';
  2. import 'package:domain/generated/json/labour_review_status_entity.g.dart';
  3. import 'dart:convert';
  4. export 'package:domain/generated/json/labour_review_status_entity.g.dart';
  5. @JsonSerializable()
  6. class LabourReviewStatusEntity {
  7. @JSONField(name: "co_department_id")
  8. int coDepartmentId = 0;
  9. List<LabourReviewStatusRecords> records = [];
  10. LabourReviewStatusEntity();
  11. factory LabourReviewStatusEntity.fromJson(Map<String, dynamic> json) => $LabourReviewStatusEntityFromJson(json);
  12. Map<String, dynamic> toJson() => $LabourReviewStatusEntityToJson(this);
  13. @override
  14. String toString() {
  15. return jsonEncode(this);
  16. }
  17. }
  18. @JsonSerializable()
  19. class LabourReviewStatusRecords {
  20. @JSONField(name: "serial_number")
  21. String? serialNumber;
  22. @JSONField(name: "node_name")
  23. String? nodeName;
  24. @JSONField(name: "status_show")
  25. String? statusShow;
  26. @JSONField(name: "audit_name")
  27. String? auditName;
  28. @JSONField(name: "audit_time")
  29. String? auditTime;
  30. @JSONField(name: "audit_mark")
  31. dynamic auditMark;
  32. @JSONField(name: "created_at")
  33. String? createdAt;
  34. @JSONField(name: "assignee_type_show")
  35. String? assigneeTypeShow;
  36. @JSONField(name: "designation_show")
  37. String? designationShow;
  38. LabourReviewStatusRecords();
  39. factory LabourReviewStatusRecords.fromJson(Map<String, dynamic> json) => $LabourReviewStatusRecordsFromJson(json);
  40. Map<String, dynamic> toJson() => $LabourReviewStatusRecordsToJson(this);
  41. @override
  42. String toString() {
  43. return jsonEncode(this);
  44. }
  45. }