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<LabourRequestIndexDepartmentList>? departmentList = [];
	@JSONField(name: "status_list")
	List<LabourRequestIndexStatusList>? statusList = [];

	LabourRequestIndexEntity();

	factory LabourRequestIndexEntity.fromJson(Map<String, dynamic> json) => $LabourRequestIndexEntityFromJson(json);

	Map<String, dynamic> toJson() => $LabourRequestIndexEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class LabourRequestIndexDepartmentList {
	int? value = 0;
	String? txt = '';
	String? selected = '';

	LabourRequestIndexDepartmentList();

	factory LabourRequestIndexDepartmentList.fromJson(Map<String, dynamic> json) => $LabourRequestIndexDepartmentListFromJson(json);

	Map<String, dynamic> toJson() => $LabourRequestIndexDepartmentListToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class LabourRequestIndexStatusList {
	int? value = 0;
	String? txt = '';
	String? selected = '';

	LabourRequestIndexStatusList();

	factory LabourRequestIndexStatusList.fromJson(Map<String, dynamic> json) => $LabourRequestIndexStatusListFromJson(json);

	Map<String, dynamic> toJson() => $LabourRequestIndexStatusListToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}