labour_request_index_entity.dart 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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: "status_list")
  10. List<LabourRequestIndexStatusList>? statusList = [];
  11. LabourRequestIndexEntity();
  12. factory LabourRequestIndexEntity.fromJson(Map<String, dynamic> json) => $LabourRequestIndexEntityFromJson(json);
  13. Map<String, dynamic> toJson() => $LabourRequestIndexEntityToJson(this);
  14. @override
  15. String toString() {
  16. return jsonEncode(this);
  17. }
  18. }
  19. @JsonSerializable()
  20. class LabourRequestIndexDepartmentList {
  21. int? value = 0;
  22. String? txt = '';
  23. String? selected = '';
  24. LabourRequestIndexDepartmentList();
  25. factory LabourRequestIndexDepartmentList.fromJson(Map<String, dynamic> json) => $LabourRequestIndexDepartmentListFromJson(json);
  26. Map<String, dynamic> toJson() => $LabourRequestIndexDepartmentListToJson(this);
  27. @override
  28. String toString() {
  29. return jsonEncode(this);
  30. }
  31. }
  32. @JsonSerializable()
  33. class LabourRequestIndexStatusList {
  34. int? value = 0;
  35. String? txt = '';
  36. String? selected = '';
  37. LabourRequestIndexStatusList();
  38. factory LabourRequestIndexStatusList.fromJson(Map<String, dynamic> json) => $LabourRequestIndexStatusListFromJson(json);
  39. Map<String, dynamic> toJson() => $LabourRequestIndexStatusListToJson(this);
  40. @override
  41. String toString() {
  42. return jsonEncode(this);
  43. }
  44. }