12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- 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: "outlet_list")
- List<LabourRequestIndexDepartmentList>? outletList = [];
- @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 {
- String? value = '';
- 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 {
- String? value = '';
- 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);
- }
- }
|