import 'package:domain/generated/json/base/json_field.dart'; import 'package:domain/generated/json/labour_request_index_entity.g.dart'; import 'dart:convert'; export 'package:domain/generated/json/labour_request_index_entity.g.dart'; @JsonSerializable() class LabourRequestIndexEntity { @JSONField(name: "department_list") List? departmentList = []; @JSONField(name: "status_list") List? statusList = []; LabourRequestIndexEntity(); factory LabourRequestIndexEntity.fromJson(Map json) => $LabourRequestIndexEntityFromJson(json); Map toJson() => $LabourRequestIndexEntityToJson(this); @override String toString() { return jsonEncode(this); } } @JsonSerializable() class LabourRequestIndexDepartmentList { int? value = 0; String? txt = ''; String? selected = ''; LabourRequestIndexDepartmentList(); factory LabourRequestIndexDepartmentList.fromJson(Map json) => $LabourRequestIndexDepartmentListFromJson(json); Map toJson() => $LabourRequestIndexDepartmentListToJson(this); @override String toString() { return jsonEncode(this); } } @JsonSerializable() class LabourRequestIndexStatusList { int? value = 0; String? txt = ''; String? selected = ''; LabourRequestIndexStatusList(); factory LabourRequestIndexStatusList.fromJson(Map json) => $LabourRequestIndexStatusListFromJson(json); Map toJson() => $LabourRequestIndexStatusListToJson(this); @override String toString() { return jsonEncode(this); } }