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: "outlet_list") List? outletList = []; @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 { String? value = ''; 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 { String? value = ''; String? txt = ''; String? selected = ''; LabourRequestIndexStatusList(); factory LabourRequestIndexStatusList.fromJson(Map json) => $LabourRequestIndexStatusListFromJson(json); Map toJson() => $LabourRequestIndexStatusListToJson(this); @override String toString() { return jsonEncode(this); } }