json_convert_content.dart 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438
  1. // ignore_for_file: non_constant_identifier_names
  2. // ignore_for_file: camel_case_types
  3. // ignore_for_file: prefer_single_quotes
  4. // This file is automatically generated. DO NOT EDIT, all your changes would be lost.
  5. import 'package:flutter/material.dart' show debugPrint;
  6. import 'package:domain/entity/response/attendance_entity.dart';
  7. import 'package:domain/entity/response/check_success_entity.dart';
  8. import 'package:domain/entity/response/device_list_entity.dart';
  9. import 'package:domain/entity/response/hotel_info_entity.dart';
  10. import 'package:domain/entity/response/id_name_entity.dart';
  11. import 'package:domain/entity/response/job_list_add_staff_entity.dart';
  12. import 'package:domain/entity/response/job_list_applied_edit_entity.dart';
  13. import 'package:domain/entity/response/job_list_applied_info_entity.dart';
  14. import 'package:domain/entity/response/job_list_applied_staff_list_entity.dart';
  15. import 'package:domain/entity/response/job_list_applied_staff_search_entity.dart';
  16. import 'package:domain/entity/response/job_list_applied_work_flow_entity.dart';
  17. import 'package:domain/entity/response/job_list_detail_entity.dart';
  18. import 'package:domain/entity/response/job_list_entity.dart';
  19. import 'package:domain/entity/response/job_list_index_entity.dart';
  20. import 'package:domain/entity/response/job_list_remark_view_entity.dart';
  21. import 'package:domain/entity/response/job_template_edit_index_entity.dart';
  22. import 'package:domain/entity/response/job_template_s_g_entity.dart';
  23. import 'package:domain/entity/response/job_title_edit_index_entity.dart';
  24. import 'package:domain/entity/response/job_title_s_g_entity.dart';
  25. import 'package:domain/entity/response/labour_request_edit_index_entity.dart';
  26. import 'package:domain/entity/response/labour_request_index_entity.dart';
  27. import 'package:domain/entity/response/labour_request_list_entity.dart';
  28. import 'package:domain/entity/response/labour_request_work_flow_entity.dart';
  29. import 'package:domain/entity/response/staff_detail_entity.dart';
  30. import 'package:domain/entity/response/staff_labour_history_entity.dart';
  31. import 'package:domain/entity/response/staff_remark_history_entity.dart';
  32. import 'package:domain/entity/server_time.dart';
  33. JsonConvert jsonConvert = JsonConvert();
  34. typedef JsonConvertFunction<T> = T Function(Map<String, dynamic> json);
  35. typedef EnumConvertFunction<T> = T Function(String value);
  36. typedef ConvertExceptionHandler = void Function(Object error, StackTrace stackTrace);
  37. extension MapSafeExt<K, V> on Map<K, V> {
  38. T? getOrNull<T>(K? key) {
  39. if (!containsKey(key) || key == null) {
  40. return null;
  41. } else {
  42. return this[key] as T?;
  43. }
  44. }
  45. }
  46. class JsonConvert {
  47. static ConvertExceptionHandler? onError;
  48. JsonConvertClassCollection convertFuncMap = JsonConvertClassCollection();
  49. /// When you are in the development, to generate a new model class, hot-reload doesn't find new generation model class, you can build on MaterialApp method called jsonConvert. ReassembleConvertFuncMap (); This method only works in a development environment
  50. /// https://flutter.cn/docs/development/tools/hot-reload
  51. /// class MyApp extends StatelessWidget {
  52. /// const MyApp({Key? key})
  53. /// : super(key: key);
  54. ///
  55. /// @override
  56. /// Widget build(BuildContext context) {
  57. /// jsonConvert.reassembleConvertFuncMap();
  58. /// return MaterialApp();
  59. /// }
  60. /// }
  61. void reassembleConvertFuncMap() {
  62. bool isReleaseMode = const bool.fromEnvironment('dart.vm.product');
  63. if (!isReleaseMode) {
  64. convertFuncMap = JsonConvertClassCollection();
  65. }
  66. }
  67. T? convert<T>(dynamic value, {EnumConvertFunction? enumConvert}) {
  68. if (value == null) {
  69. return null;
  70. }
  71. if (value is T) {
  72. return value;
  73. }
  74. try {
  75. return _asT<T>(value, enumConvert: enumConvert);
  76. } catch (e, stackTrace) {
  77. debugPrint('asT<$T> $e $stackTrace');
  78. if (onError != null) {
  79. onError!(e, stackTrace);
  80. }
  81. return null;
  82. }
  83. }
  84. List<T?>? convertList<T>(List<dynamic>? value, {EnumConvertFunction? enumConvert}) {
  85. if (value == null) {
  86. return null;
  87. }
  88. try {
  89. return value.map((dynamic e) => _asT<T>(e, enumConvert: enumConvert)).toList();
  90. } catch (e, stackTrace) {
  91. debugPrint('asT<$T> $e $stackTrace');
  92. if (onError != null) {
  93. onError!(e, stackTrace);
  94. }
  95. return <T>[];
  96. }
  97. }
  98. List<T>? convertListNotNull<T>(dynamic value, {EnumConvertFunction? enumConvert}) {
  99. if (value == null) {
  100. return null;
  101. }
  102. try {
  103. return (value as List<dynamic>).map((dynamic e) => _asT<T>(e, enumConvert: enumConvert)!).toList();
  104. } catch (e, stackTrace) {
  105. debugPrint('asT<$T> $e $stackTrace');
  106. if (onError != null) {
  107. onError!(e, stackTrace);
  108. }
  109. return <T>[];
  110. }
  111. }
  112. T? _asT<T extends Object?>(dynamic value,
  113. {EnumConvertFunction? enumConvert}) {
  114. final String type = T.toString();
  115. final String valueS = value.toString();
  116. if (enumConvert != null) {
  117. return enumConvert(valueS) as T;
  118. } else if (type == "String") {
  119. return valueS as T;
  120. } else if (type == "int") {
  121. final int? intValue = int.tryParse(valueS);
  122. if (intValue == null) {
  123. return double.tryParse(valueS)?.toInt() as T?;
  124. } else {
  125. return intValue as T;
  126. }
  127. } else if (type == "double") {
  128. return double.parse(valueS) as T;
  129. } else if (type == "DateTime") {
  130. return DateTime.parse(valueS) as T;
  131. } else if (type == "bool") {
  132. if (valueS == '0' || valueS == '1') {
  133. return (valueS == '1') as T;
  134. }
  135. return (valueS == 'true') as T;
  136. } else if (type == "Map" || type.startsWith("Map<")) {
  137. return value as T;
  138. } else {
  139. if (convertFuncMap.containsKey(type)) {
  140. if (value == null) {
  141. return null;
  142. }
  143. return convertFuncMap[type]!(value as Map<String, dynamic>) as T;
  144. } else {
  145. throw UnimplementedError('$type unimplemented,you can try running the app again');
  146. }
  147. }
  148. }
  149. //list is returned by type
  150. static M? _getListChildType<M>(List<Map<String, dynamic>> data) {
  151. if (<AttendanceEntity>[] is M) {
  152. return data.map<AttendanceEntity>((Map<String, dynamic> e) => AttendanceEntity.fromJson(e)).toList() as M;
  153. }
  154. if (<AttendanceList>[] is M) {
  155. return data.map<AttendanceList>((Map<String, dynamic> e) => AttendanceList.fromJson(e)).toList() as M;
  156. }
  157. if (<CheckSuccessEntity>[] is M) {
  158. return data.map<CheckSuccessEntity>((Map<String, dynamic> e) => CheckSuccessEntity.fromJson(e)).toList() as M;
  159. }
  160. if (<DeviceListEntity>[] is M) {
  161. return data.map<DeviceListEntity>((Map<String, dynamic> e) => DeviceListEntity.fromJson(e)).toList() as M;
  162. }
  163. if (<DeviceListRows>[] is M) {
  164. return data.map<DeviceListRows>((Map<String, dynamic> e) => DeviceListRows.fromJson(e)).toList() as M;
  165. }
  166. if (<HotelInfoEntity>[] is M) {
  167. return data.map<HotelInfoEntity>((Map<String, dynamic> e) => HotelInfoEntity.fromJson(e)).toList() as M;
  168. }
  169. if (<HotelInfoMenus>[] is M) {
  170. return data.map<HotelInfoMenus>((Map<String, dynamic> e) => HotelInfoMenus.fromJson(e)).toList() as M;
  171. }
  172. if (<HotelInfoMenusChildren>[] is M) {
  173. return data.map<HotelInfoMenusChildren>((Map<String, dynamic> e) => HotelInfoMenusChildren.fromJson(e)).toList() as M;
  174. }
  175. if (<IdNameEntity>[] is M) {
  176. return data.map<IdNameEntity>((Map<String, dynamic> e) => IdNameEntity.fromJson(e)).toList() as M;
  177. }
  178. if (<JobListAddStaffEntity>[] is M) {
  179. return data.map<JobListAddStaffEntity>((Map<String, dynamic> e) => JobListAddStaffEntity.fromJson(e)).toList() as M;
  180. }
  181. if (<JobListAddStaffResultList>[] is M) {
  182. return data.map<JobListAddStaffResultList>((Map<String, dynamic> e) => JobListAddStaffResultList.fromJson(e)).toList() as M;
  183. }
  184. if (<JobListAppliedEditEntity>[] is M) {
  185. return data.map<JobListAppliedEditEntity>((Map<String, dynamic> e) => JobListAppliedEditEntity.fromJson(e)).toList() as M;
  186. }
  187. if (<JobListAppliedEditReasonList>[] is M) {
  188. return data.map<JobListAppliedEditReasonList>((Map<String, dynamic> e) => JobListAppliedEditReasonList.fromJson(e)).toList() as M;
  189. }
  190. if (<JobListAppliedInfoEntity>[] is M) {
  191. return data.map<JobListAppliedInfoEntity>((Map<String, dynamic> e) => JobListAppliedInfoEntity.fromJson(e)).toList() as M;
  192. }
  193. if (<JobListAppliedStaffListEntity>[] is M) {
  194. return data.map<JobListAppliedStaffListEntity>((Map<String, dynamic> e) => JobListAppliedStaffListEntity.fromJson(e)).toList() as M;
  195. }
  196. if (<JobListAppliedStaffListRows>[] is M) {
  197. return data.map<JobListAppliedStaffListRows>((Map<String, dynamic> e) => JobListAppliedStaffListRows.fromJson(e)).toList() as M;
  198. }
  199. if (<JobListAppliedStaffListRowsSecurityIn>[] is M) {
  200. return data.map<JobListAppliedStaffListRowsSecurityIn>((Map<String, dynamic> e) => JobListAppliedStaffListRowsSecurityIn.fromJson(e)).toList() as M;
  201. }
  202. if (<JobListAppliedStaffListRowsSecurityOut>[] is M) {
  203. return data.map<JobListAppliedStaffListRowsSecurityOut>((Map<String, dynamic> e) => JobListAppliedStaffListRowsSecurityOut.fromJson(e)).toList() as M;
  204. }
  205. if (<JobListAppliedStaffListRowsWorkIn>[] is M) {
  206. return data.map<JobListAppliedStaffListRowsWorkIn>((Map<String, dynamic> e) => JobListAppliedStaffListRowsWorkIn.fromJson(e)).toList() as M;
  207. }
  208. if (<JobListAppliedStaffListRowsWorkOut>[] is M) {
  209. return data.map<JobListAppliedStaffListRowsWorkOut>((Map<String, dynamic> e) => JobListAppliedStaffListRowsWorkOut.fromJson(e)).toList() as M;
  210. }
  211. if (<JobListAppliedStaffSearchEntity>[] is M) {
  212. return data.map<JobListAppliedStaffSearchEntity>((Map<String, dynamic> e) => JobListAppliedStaffSearchEntity.fromJson(e)).toList() as M;
  213. }
  214. if (<JobListAppliedStaffSearchRows>[] is M) {
  215. return data.map<JobListAppliedStaffSearchRows>((Map<String, dynamic> e) => JobListAppliedStaffSearchRows.fromJson(e)).toList() as M;
  216. }
  217. if (<JobListAppliedWorkFlowEntity>[] is M) {
  218. return data.map<JobListAppliedWorkFlowEntity>((Map<String, dynamic> e) => JobListAppliedWorkFlowEntity.fromJson(e)).toList() as M;
  219. }
  220. if (<JobListAppliedWorkFlowRecords>[] is M) {
  221. return data.map<JobListAppliedWorkFlowRecords>((Map<String, dynamic> e) => JobListAppliedWorkFlowRecords.fromJson(e)).toList() as M;
  222. }
  223. if (<JobListDetailEntity>[] is M) {
  224. return data.map<JobListDetailEntity>((Map<String, dynamic> e) => JobListDetailEntity.fromJson(e)).toList() as M;
  225. }
  226. if (<JobListDetailDepartmentList>[] is M) {
  227. return data.map<JobListDetailDepartmentList>((Map<String, dynamic> e) => JobListDetailDepartmentList.fromJson(e)).toList() as M;
  228. }
  229. if (<JobListEntity>[] is M) {
  230. return data.map<JobListEntity>((Map<String, dynamic> e) => JobListEntity.fromJson(e)).toList() as M;
  231. }
  232. if (<JobListRows>[] is M) {
  233. return data.map<JobListRows>((Map<String, dynamic> e) => JobListRows.fromJson(e)).toList() as M;
  234. }
  235. if (<JobListIndexEntity>[] is M) {
  236. return data.map<JobListIndexEntity>((Map<String, dynamic> e) => JobListIndexEntity.fromJson(e)).toList() as M;
  237. }
  238. if (<JobListIndexDepartmentList>[] is M) {
  239. return data.map<JobListIndexDepartmentList>((Map<String, dynamic> e) => JobListIndexDepartmentList.fromJson(e)).toList() as M;
  240. }
  241. if (<JobListIndexStatusList>[] is M) {
  242. return data.map<JobListIndexStatusList>((Map<String, dynamic> e) => JobListIndexStatusList.fromJson(e)).toList() as M;
  243. }
  244. if (<JobListRemarkViewEntity>[] is M) {
  245. return data.map<JobListRemarkViewEntity>((Map<String, dynamic> e) => JobListRemarkViewEntity.fromJson(e)).toList() as M;
  246. }
  247. if (<JobTemplateEditIndexEntity>[] is M) {
  248. return data.map<JobTemplateEditIndexEntity>((Map<String, dynamic> e) => JobTemplateEditIndexEntity.fromJson(e)).toList() as M;
  249. }
  250. if (<JobTemplateEditIndexAgeList>[] is M) {
  251. return data.map<JobTemplateEditIndexAgeList>((Map<String, dynamic> e) => JobTemplateEditIndexAgeList.fromJson(e)).toList() as M;
  252. }
  253. if (<JobTemplateEditIndexSexList>[] is M) {
  254. return data.map<JobTemplateEditIndexSexList>((Map<String, dynamic> e) => JobTemplateEditIndexSexList.fromJson(e)).toList() as M;
  255. }
  256. if (<JobTemplateEditIndexLanguageList>[] is M) {
  257. return data.map<JobTemplateEditIndexLanguageList>((Map<String, dynamic> e) => JobTemplateEditIndexLanguageList.fromJson(e)).toList() as M;
  258. }
  259. if (<JobTemplateSGEntity>[] is M) {
  260. return data.map<JobTemplateSGEntity>((Map<String, dynamic> e) => JobTemplateSGEntity.fromJson(e)).toList() as M;
  261. }
  262. if (<JobTemplateSGRows>[] is M) {
  263. return data.map<JobTemplateSGRows>((Map<String, dynamic> e) => JobTemplateSGRows.fromJson(e)).toList() as M;
  264. }
  265. if (<JobTitleEditIndexEntity>[] is M) {
  266. return data.map<JobTitleEditIndexEntity>((Map<String, dynamic> e) => JobTitleEditIndexEntity.fromJson(e)).toList() as M;
  267. }
  268. if (<JobTitleEditIndexTemplate>[] is M) {
  269. return data.map<JobTitleEditIndexTemplate>((Map<String, dynamic> e) => JobTitleEditIndexTemplate.fromJson(e)).toList() as M;
  270. }
  271. if (<JobTitleSGEntity>[] is M) {
  272. return data.map<JobTitleSGEntity>((Map<String, dynamic> e) => JobTitleSGEntity.fromJson(e)).toList() as M;
  273. }
  274. if (<JobTitleSGRows>[] is M) {
  275. return data.map<JobTitleSGRows>((Map<String, dynamic> e) => JobTitleSGRows.fromJson(e)).toList() as M;
  276. }
  277. if (<LabourRequestEditIndexEntity>[] is M) {
  278. return data.map<LabourRequestEditIndexEntity>((Map<String, dynamic> e) => LabourRequestEditIndexEntity.fromJson(e)).toList() as M;
  279. }
  280. if (<LabourRequestEditIndexTemplateList>[] is M) {
  281. return data.map<LabourRequestEditIndexTemplateList>((Map<String, dynamic> e) => LabourRequestEditIndexTemplateList.fromJson(e)).toList() as M;
  282. }
  283. if (<LabourRequestEditIndexDepartmentList>[] is M) {
  284. return data.map<LabourRequestEditIndexDepartmentList>((Map<String, dynamic> e) => LabourRequestEditIndexDepartmentList.fromJson(e)).toList() as M;
  285. }
  286. if (<LabourRequestIndexEntity>[] is M) {
  287. return data.map<LabourRequestIndexEntity>((Map<String, dynamic> e) => LabourRequestIndexEntity.fromJson(e)).toList() as M;
  288. }
  289. if (<LabourRequestIndexDepartmentList>[] is M) {
  290. return data.map<LabourRequestIndexDepartmentList>((Map<String, dynamic> e) => LabourRequestIndexDepartmentList.fromJson(e)).toList() as M;
  291. }
  292. if (<LabourRequestIndexStatusList>[] is M) {
  293. return data.map<LabourRequestIndexStatusList>((Map<String, dynamic> e) => LabourRequestIndexStatusList.fromJson(e)).toList() as M;
  294. }
  295. if (<LabourRequestListEntity>[] is M) {
  296. return data.map<LabourRequestListEntity>((Map<String, dynamic> e) => LabourRequestListEntity.fromJson(e)).toList() as M;
  297. }
  298. if (<LabourRequestListRows>[] is M) {
  299. return data.map<LabourRequestListRows>((Map<String, dynamic> e) => LabourRequestListRows.fromJson(e)).toList() as M;
  300. }
  301. if (<LabourRequestWorkFlowEntity>[] is M) {
  302. return data.map<LabourRequestWorkFlowEntity>((Map<String, dynamic> e) => LabourRequestWorkFlowEntity.fromJson(e)).toList() as M;
  303. }
  304. if (<LabourRequestWorkFlowRecords>[] is M) {
  305. return data.map<LabourRequestWorkFlowRecords>((Map<String, dynamic> e) => LabourRequestWorkFlowRecords.fromJson(e)).toList() as M;
  306. }
  307. if (<StaffDetailEntity>[] is M) {
  308. return data.map<StaffDetailEntity>((Map<String, dynamic> e) => StaffDetailEntity.fromJson(e)).toList() as M;
  309. }
  310. if (<StaffLabourHistoryEntity>[] is M) {
  311. return data.map<StaffLabourHistoryEntity>((Map<String, dynamic> e) => StaffLabourHistoryEntity.fromJson(e)).toList() as M;
  312. }
  313. if (<StaffLabourHistoryRows>[] is M) {
  314. return data.map<StaffLabourHistoryRows>((Map<String, dynamic> e) => StaffLabourHistoryRows.fromJson(e)).toList() as M;
  315. }
  316. if (<StaffLabourHistoryRowsSecurityIn>[] is M) {
  317. return data.map<StaffLabourHistoryRowsSecurityIn>((Map<String, dynamic> e) => StaffLabourHistoryRowsSecurityIn.fromJson(e)).toList() as M;
  318. }
  319. if (<StaffLabourHistoryRowsSecurityOut>[] is M) {
  320. return data.map<StaffLabourHistoryRowsSecurityOut>((Map<String, dynamic> e) => StaffLabourHistoryRowsSecurityOut.fromJson(e)).toList() as M;
  321. }
  322. if (<StaffLabourHistoryRowsWorkIn>[] is M) {
  323. return data.map<StaffLabourHistoryRowsWorkIn>((Map<String, dynamic> e) => StaffLabourHistoryRowsWorkIn.fromJson(e)).toList() as M;
  324. }
  325. if (<StaffLabourHistoryRowsWorkOut>[] is M) {
  326. return data.map<StaffLabourHistoryRowsWorkOut>((Map<String, dynamic> e) => StaffLabourHistoryRowsWorkOut.fromJson(e)).toList() as M;
  327. }
  328. if (<StaffRemarkHistoryEntity>[] is M) {
  329. return data.map<StaffRemarkHistoryEntity>((Map<String, dynamic> e) => StaffRemarkHistoryEntity.fromJson(e)).toList() as M;
  330. }
  331. if (<StaffRemarkHistoryRows>[] is M) {
  332. return data.map<StaffRemarkHistoryRows>((Map<String, dynamic> e) => StaffRemarkHistoryRows.fromJson(e)).toList() as M;
  333. }
  334. if (<ServerTime>[] is M) {
  335. return data.map<ServerTime>((Map<String, dynamic> e) => ServerTime.fromJson(e)).toList() as M;
  336. }
  337. debugPrint("$M not found");
  338. return null;
  339. }
  340. static M? fromJsonAsT<M>(dynamic json) {
  341. if (json is M) {
  342. return json;
  343. }
  344. if (json is List) {
  345. return _getListChildType<M>(json.map((dynamic e) => e as Map<String, dynamic>).toList());
  346. } else {
  347. return jsonConvert.convert<M>(json);
  348. }
  349. }
  350. }
  351. class JsonConvertClassCollection {
  352. Map<String, JsonConvertFunction> convertFuncMap = {
  353. (AttendanceEntity).toString(): AttendanceEntity.fromJson,
  354. (AttendanceList).toString(): AttendanceList.fromJson,
  355. (CheckSuccessEntity).toString(): CheckSuccessEntity.fromJson,
  356. (DeviceListEntity).toString(): DeviceListEntity.fromJson,
  357. (DeviceListRows).toString(): DeviceListRows.fromJson,
  358. (HotelInfoEntity).toString(): HotelInfoEntity.fromJson,
  359. (HotelInfoMenus).toString(): HotelInfoMenus.fromJson,
  360. (HotelInfoMenusChildren).toString(): HotelInfoMenusChildren.fromJson,
  361. (IdNameEntity).toString(): IdNameEntity.fromJson,
  362. (JobListAddStaffEntity).toString(): JobListAddStaffEntity.fromJson,
  363. (JobListAddStaffResultList).toString(): JobListAddStaffResultList.fromJson,
  364. (JobListAppliedEditEntity).toString(): JobListAppliedEditEntity.fromJson,
  365. (JobListAppliedEditReasonList).toString(): JobListAppliedEditReasonList.fromJson,
  366. (JobListAppliedInfoEntity).toString(): JobListAppliedInfoEntity.fromJson,
  367. (JobListAppliedStaffListEntity).toString(): JobListAppliedStaffListEntity.fromJson,
  368. (JobListAppliedStaffListRows).toString(): JobListAppliedStaffListRows.fromJson,
  369. (JobListAppliedStaffListRowsSecurityIn).toString(): JobListAppliedStaffListRowsSecurityIn.fromJson,
  370. (JobListAppliedStaffListRowsSecurityOut).toString(): JobListAppliedStaffListRowsSecurityOut.fromJson,
  371. (JobListAppliedStaffListRowsWorkIn).toString(): JobListAppliedStaffListRowsWorkIn.fromJson,
  372. (JobListAppliedStaffListRowsWorkOut).toString(): JobListAppliedStaffListRowsWorkOut.fromJson,
  373. (JobListAppliedStaffSearchEntity).toString(): JobListAppliedStaffSearchEntity.fromJson,
  374. (JobListAppliedStaffSearchRows).toString(): JobListAppliedStaffSearchRows.fromJson,
  375. (JobListAppliedWorkFlowEntity).toString(): JobListAppliedWorkFlowEntity.fromJson,
  376. (JobListAppliedWorkFlowRecords).toString(): JobListAppliedWorkFlowRecords.fromJson,
  377. (JobListDetailEntity).toString(): JobListDetailEntity.fromJson,
  378. (JobListDetailDepartmentList).toString(): JobListDetailDepartmentList.fromJson,
  379. (JobListEntity).toString(): JobListEntity.fromJson,
  380. (JobListRows).toString(): JobListRows.fromJson,
  381. (JobListIndexEntity).toString(): JobListIndexEntity.fromJson,
  382. (JobListIndexDepartmentList).toString(): JobListIndexDepartmentList.fromJson,
  383. (JobListIndexStatusList).toString(): JobListIndexStatusList.fromJson,
  384. (JobListRemarkViewEntity).toString(): JobListRemarkViewEntity.fromJson,
  385. (JobTemplateEditIndexEntity).toString(): JobTemplateEditIndexEntity.fromJson,
  386. (JobTemplateEditIndexAgeList).toString(): JobTemplateEditIndexAgeList.fromJson,
  387. (JobTemplateEditIndexSexList).toString(): JobTemplateEditIndexSexList.fromJson,
  388. (JobTemplateEditIndexLanguageList).toString(): JobTemplateEditIndexLanguageList.fromJson,
  389. (JobTemplateSGEntity).toString(): JobTemplateSGEntity.fromJson,
  390. (JobTemplateSGRows).toString(): JobTemplateSGRows.fromJson,
  391. (JobTitleEditIndexEntity).toString(): JobTitleEditIndexEntity.fromJson,
  392. (JobTitleEditIndexTemplate).toString(): JobTitleEditIndexTemplate.fromJson,
  393. (JobTitleSGEntity).toString(): JobTitleSGEntity.fromJson,
  394. (JobTitleSGRows).toString(): JobTitleSGRows.fromJson,
  395. (LabourRequestEditIndexEntity).toString(): LabourRequestEditIndexEntity.fromJson,
  396. (LabourRequestEditIndexTemplateList).toString(): LabourRequestEditIndexTemplateList.fromJson,
  397. (LabourRequestEditIndexDepartmentList).toString(): LabourRequestEditIndexDepartmentList.fromJson,
  398. (LabourRequestIndexEntity).toString(): LabourRequestIndexEntity.fromJson,
  399. (LabourRequestIndexDepartmentList).toString(): LabourRequestIndexDepartmentList.fromJson,
  400. (LabourRequestIndexStatusList).toString(): LabourRequestIndexStatusList.fromJson,
  401. (LabourRequestListEntity).toString(): LabourRequestListEntity.fromJson,
  402. (LabourRequestListRows).toString(): LabourRequestListRows.fromJson,
  403. (LabourRequestWorkFlowEntity).toString(): LabourRequestWorkFlowEntity.fromJson,
  404. (LabourRequestWorkFlowRecords).toString(): LabourRequestWorkFlowRecords.fromJson,
  405. (StaffDetailEntity).toString(): StaffDetailEntity.fromJson,
  406. (StaffLabourHistoryEntity).toString(): StaffLabourHistoryEntity.fromJson,
  407. (StaffLabourHistoryRows).toString(): StaffLabourHistoryRows.fromJson,
  408. (StaffLabourHistoryRowsSecurityIn).toString(): StaffLabourHistoryRowsSecurityIn.fromJson,
  409. (StaffLabourHistoryRowsSecurityOut).toString(): StaffLabourHistoryRowsSecurityOut.fromJson,
  410. (StaffLabourHistoryRowsWorkIn).toString(): StaffLabourHistoryRowsWorkIn.fromJson,
  411. (StaffLabourHistoryRowsWorkOut).toString(): StaffLabourHistoryRowsWorkOut.fromJson,
  412. (StaffRemarkHistoryEntity).toString(): StaffRemarkHistoryEntity.fromJson,
  413. (StaffRemarkHistoryRows).toString(): StaffRemarkHistoryRows.fromJson,
  414. (ServerTime).toString(): ServerTime.fromJson,
  415. };
  416. bool containsKey(String type) {
  417. return convertFuncMap.containsKey(type);
  418. }
  419. JsonConvertFunction? operator [](String key) {
  420. return convertFuncMap[key];
  421. }
  422. }