labour_request_index_entity.dart 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. import 'package:domain/generated/json/base/json_field.dart';
  2. import 'package:domain/generated/json/labour_request_index_entity.g.dart';
  3. import 'dart:convert';
  4. export 'package:domain/generated/json/labour_request_index_entity.g.dart';
  5. @JsonSerializable()
  6. class LabourRequestIndexEntity {
  7. @JSONField(name: "department_list")
  8. List<LabourRequestIndexDepartmentList>? departmentList = [];
  9. @JSONField(name: "outlet_list")
  10. List<LabourRequestIndexDepartmentList>? outletList = [];
  11. @JSONField(name: "status_list")
  12. List<LabourRequestIndexStatusList>? statusList = [];
  13. LabourRequestIndexEntity();
  14. factory LabourRequestIndexEntity.fromJson(Map<String, dynamic> json) => $LabourRequestIndexEntityFromJson(json);
  15. Map<String, dynamic> toJson() => $LabourRequestIndexEntityToJson(this);
  16. @override
  17. String toString() {
  18. return jsonEncode(this);
  19. }
  20. }
  21. @JsonSerializable()
  22. class LabourRequestIndexDepartmentList {
  23. String? value = '';
  24. String? txt = '';
  25. String? selected = '';
  26. LabourRequestIndexDepartmentList();
  27. factory LabourRequestIndexDepartmentList.fromJson(Map<String, dynamic> json) => $LabourRequestIndexDepartmentListFromJson(json);
  28. Map<String, dynamic> toJson() => $LabourRequestIndexDepartmentListToJson(this);
  29. @override
  30. String toString() {
  31. return jsonEncode(this);
  32. }
  33. }
  34. @JsonSerializable()
  35. class LabourRequestIndexStatusList {
  36. String? value = '';
  37. String? txt = '';
  38. String? selected = '';
  39. LabourRequestIndexStatusList();
  40. factory LabourRequestIndexStatusList.fromJson(Map<String, dynamic> json) => $LabourRequestIndexStatusListFromJson(json);
  41. Map<String, dynamic> toJson() => $LabourRequestIndexStatusListToJson(this);
  42. @override
  43. String toString() {
  44. return jsonEncode(this);
  45. }
  46. }