json_convert_content.dart 41 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743
  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/add_edit_revise_view_s_g_entity.dart';
  7. import 'package:domain/entity/response/agency_detail_entity.dart';
  8. import 'package:domain/entity/response/agency_option_entity.dart';
  9. import 'package:domain/entity/response/agency_table_entity.dart';
  10. import 'package:domain/entity/response/attendance_entity.dart';
  11. import 'package:domain/entity/response/attendance_review_entity.dart';
  12. import 'package:domain/entity/response/check_success_entity.dart';
  13. import 'package:domain/entity/response/device_list_entity.dart';
  14. import 'package:domain/entity/response/fiance_report_entity.dart';
  15. import 'package:domain/entity/response/hotel_info_entity.dart';
  16. import 'package:domain/entity/response/id_name_entity.dart';
  17. import 'package:domain/entity/response/index_option_entity.dart';
  18. import 'package:domain/entity/response/job_applied_edit_index_s_g_entity.dart';
  19. import 'package:domain/entity/response/job_applied_index_s_g_entity.dart';
  20. import 'package:domain/entity/response/job_applied_list_s_g_entity.dart';
  21. import 'package:domain/entity/response/job_applied_remark_view_s_g_entity.dart';
  22. import 'package:domain/entity/response/job_applied_staff_s_g_entity.dart';
  23. import 'package:domain/entity/response/job_list_add_staff_entity.dart';
  24. import 'package:domain/entity/response/job_list_applied_edit_entity.dart';
  25. import 'package:domain/entity/response/job_list_applied_info_entity.dart';
  26. import 'package:domain/entity/response/job_list_applied_staff_list_entity.dart';
  27. import 'package:domain/entity/response/job_list_applied_staff_search_entity.dart';
  28. import 'package:domain/entity/response/job_list_applied_work_flow_entity.dart';
  29. import 'package:domain/entity/response/job_list_detail_entity.dart';
  30. import 'package:domain/entity/response/job_list_edit_index_s_g_entity.dart';
  31. import 'package:domain/entity/response/job_list_entity.dart';
  32. import 'package:domain/entity/response/job_list_index_entity.dart';
  33. import 'package:domain/entity/response/job_list_index_s_g_entity.dart';
  34. import 'package:domain/entity/response/job_list_remark_view_entity.dart';
  35. import 'package:domain/entity/response/job_list_s_g_entity.dart';
  36. import 'package:domain/entity/response/job_template_edit_index_entity.dart';
  37. import 'package:domain/entity/response/job_template_s_g_entity.dart';
  38. import 'package:domain/entity/response/job_title_edit_index_entity.dart';
  39. import 'package:domain/entity/response/job_title_s_g_entity.dart';
  40. import 'package:domain/entity/response/labour_report_entity.dart';
  41. import 'package:domain/entity/response/labour_report_v_n_entity.dart';
  42. import 'package:domain/entity/response/labour_request_edit_index_entity.dart';
  43. import 'package:domain/entity/response/labour_request_index_entity.dart';
  44. import 'package:domain/entity/response/labour_request_list_entity.dart';
  45. import 'package:domain/entity/response/labour_request_s_g_add_index_entity.dart';
  46. import 'package:domain/entity/response/labour_request_s_g_edit_index_entity.dart';
  47. import 'package:domain/entity/response/labour_request_s_g_entity.dart';
  48. import 'package:domain/entity/response/labour_request_s_g_list_entity.dart';
  49. import 'package:domain/entity/response/labour_request_work_flow_entity.dart';
  50. import 'package:domain/entity/response/labour_review_list_entity.dart';
  51. import 'package:domain/entity/response/labour_review_status_entity.dart';
  52. import 'package:domain/entity/response/position_table_entity.dart';
  53. import 'package:domain/entity/response/revise_index_s_g_entity.dart';
  54. import 'package:domain/entity/response/revise_list_s_g_entity.dart';
  55. import 'package:domain/entity/response/revise_log_s_g_entity.dart';
  56. import 'package:domain/entity/response/staff_detail_entity.dart';
  57. import 'package:domain/entity/response/staff_detail_s_g_entity.dart';
  58. import 'package:domain/entity/response/staff_job_history_s_g_entity.dart';
  59. import 'package:domain/entity/response/staff_labour_history_entity.dart';
  60. import 'package:domain/entity/response/staff_remark_history_entity.dart';
  61. import 'package:domain/entity/response/staff_report_v_n_entity.dart';
  62. import 'package:domain/entity/response/staff_request_report_entity.dart';
  63. import 'package:domain/entity/response/staff_review_history_s_g_entity.dart';
  64. import 'package:domain/entity/server_time.dart';
  65. JsonConvert jsonConvert = JsonConvert();
  66. typedef JsonConvertFunction<T> = T Function(Map<String, dynamic> json);
  67. typedef EnumConvertFunction<T> = T Function(String value);
  68. typedef ConvertExceptionHandler = void Function(Object error, StackTrace stackTrace);
  69. extension MapSafeExt<K, V> on Map<K, V> {
  70. T? getOrNull<T>(K? key) {
  71. if (!containsKey(key) || key == null) {
  72. return null;
  73. } else {
  74. return this[key] as T?;
  75. }
  76. }
  77. }
  78. class JsonConvert {
  79. static ConvertExceptionHandler? onError;
  80. JsonConvertClassCollection convertFuncMap = JsonConvertClassCollection();
  81. /// 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
  82. /// https://flutter.cn/docs/development/tools/hot-reload
  83. /// class MyApp extends StatelessWidget {
  84. /// const MyApp({Key? key})
  85. /// : super(key: key);
  86. ///
  87. /// @override
  88. /// Widget build(BuildContext context) {
  89. /// jsonConvert.reassembleConvertFuncMap();
  90. /// return MaterialApp();
  91. /// }
  92. /// }
  93. void reassembleConvertFuncMap() {
  94. bool isReleaseMode = const bool.fromEnvironment('dart.vm.product');
  95. if (!isReleaseMode) {
  96. convertFuncMap = JsonConvertClassCollection();
  97. }
  98. }
  99. T? convert<T>(dynamic value, {EnumConvertFunction? enumConvert}) {
  100. if (value == null) {
  101. return null;
  102. }
  103. if (value is T) {
  104. return value;
  105. }
  106. try {
  107. return _asT<T>(value, enumConvert: enumConvert);
  108. } catch (e, stackTrace) {
  109. debugPrint('asT<$T> $e $stackTrace');
  110. if (onError != null) {
  111. onError!(e, stackTrace);
  112. }
  113. return null;
  114. }
  115. }
  116. List<T?>? convertList<T>(List<dynamic>? value, {EnumConvertFunction? enumConvert}) {
  117. if (value == null) {
  118. return null;
  119. }
  120. try {
  121. return value.map((dynamic e) => _asT<T>(e, enumConvert: enumConvert)).toList();
  122. } catch (e, stackTrace) {
  123. debugPrint('asT<$T> $e $stackTrace');
  124. if (onError != null) {
  125. onError!(e, stackTrace);
  126. }
  127. return <T>[];
  128. }
  129. }
  130. List<T>? convertListNotNull<T>(dynamic value, {EnumConvertFunction? enumConvert}) {
  131. if (value == null) {
  132. return null;
  133. }
  134. try {
  135. return (value as List<dynamic>).map((dynamic e) => _asT<T>(e, enumConvert: enumConvert)!).toList();
  136. } catch (e, stackTrace) {
  137. debugPrint('asT<$T> $e $stackTrace');
  138. if (onError != null) {
  139. onError!(e, stackTrace);
  140. }
  141. return <T>[];
  142. }
  143. }
  144. T? _asT<T extends Object?>(dynamic value,
  145. {EnumConvertFunction? enumConvert}) {
  146. final String type = T.toString();
  147. final String valueS = value.toString();
  148. if (enumConvert != null) {
  149. return enumConvert(valueS) as T;
  150. } else if (type == "String") {
  151. return valueS as T;
  152. } else if (type == "int") {
  153. final int? intValue = int.tryParse(valueS);
  154. if (intValue == null) {
  155. return double.tryParse(valueS)?.toInt() as T?;
  156. } else {
  157. return intValue as T;
  158. }
  159. } else if (type == "double") {
  160. return double.parse(valueS) as T;
  161. } else if (type == "DateTime") {
  162. return DateTime.parse(valueS) as T;
  163. } else if (type == "bool") {
  164. if (valueS == '0' || valueS == '1') {
  165. return (valueS == '1') as T;
  166. }
  167. return (valueS == 'true') as T;
  168. } else if (type == "Map" || type.startsWith("Map<")) {
  169. return value as T;
  170. } else {
  171. if (convertFuncMap.containsKey(type)) {
  172. if (value == null) {
  173. return null;
  174. }
  175. var covertFunc = convertFuncMap[type]!;
  176. if (covertFunc is Map<String, dynamic>) {
  177. return covertFunc(value as Map<String, dynamic>) as T;
  178. } else {
  179. return covertFunc(Map<String, dynamic>.from(value)) as T;
  180. }
  181. } else {
  182. throw UnimplementedError('$type unimplemented,you can try running the app again');
  183. }
  184. }
  185. }
  186. //list is returned by type
  187. static M? _getListChildType<M>(List<Map<String, dynamic>> data) {
  188. if (<AddEditReviseViewSGEntity>[] is M) {
  189. return data.map<AddEditReviseViewSGEntity>((Map<String, dynamic> e) => AddEditReviseViewSGEntity.fromJson(e)).toList() as M;
  190. }
  191. if (<AgencyDetailEntity>[] is M) {
  192. return data.map<AgencyDetailEntity>((Map<String, dynamic> e) => AgencyDetailEntity.fromJson(e)).toList() as M;
  193. }
  194. if (<AgencyDetailPivot>[] is M) {
  195. return data.map<AgencyDetailPivot>((Map<String, dynamic> e) => AgencyDetailPivot.fromJson(e)).toList() as M;
  196. }
  197. if (<AgencyOptionEntity>[] is M) {
  198. return data.map<AgencyOptionEntity>((Map<String, dynamic> e) => AgencyOptionEntity.fromJson(e)).toList() as M;
  199. }
  200. if (<AgencyTableEntity>[] is M) {
  201. return data.map<AgencyTableEntity>((Map<String, dynamic> e) => AgencyTableEntity.fromJson(e)).toList() as M;
  202. }
  203. if (<AgencyTableRows>[] is M) {
  204. return data.map<AgencyTableRows>((Map<String, dynamic> e) => AgencyTableRows.fromJson(e)).toList() as M;
  205. }
  206. if (<AttendanceEntity>[] is M) {
  207. return data.map<AttendanceEntity>((Map<String, dynamic> e) => AttendanceEntity.fromJson(e)).toList() as M;
  208. }
  209. if (<AttendanceList>[] is M) {
  210. return data.map<AttendanceList>((Map<String, dynamic> e) => AttendanceList.fromJson(e)).toList() as M;
  211. }
  212. if (<AttendanceReviewEntity>[] is M) {
  213. return data.map<AttendanceReviewEntity>((Map<String, dynamic> e) => AttendanceReviewEntity.fromJson(e)).toList() as M;
  214. }
  215. if (<AttendanceReviewRows>[] is M) {
  216. return data.map<AttendanceReviewRows>((Map<String, dynamic> e) => AttendanceReviewRows.fromJson(e)).toList() as M;
  217. }
  218. if (<CheckSuccessEntity>[] is M) {
  219. return data.map<CheckSuccessEntity>((Map<String, dynamic> e) => CheckSuccessEntity.fromJson(e)).toList() as M;
  220. }
  221. if (<DeviceListEntity>[] is M) {
  222. return data.map<DeviceListEntity>((Map<String, dynamic> e) => DeviceListEntity.fromJson(e)).toList() as M;
  223. }
  224. if (<DeviceListRows>[] is M) {
  225. return data.map<DeviceListRows>((Map<String, dynamic> e) => DeviceListRows.fromJson(e)).toList() as M;
  226. }
  227. if (<FianceReportEntity>[] is M) {
  228. return data.map<FianceReportEntity>((Map<String, dynamic> e) => FianceReportEntity.fromJson(e)).toList() as M;
  229. }
  230. if (<FianceReportRateList>[] is M) {
  231. return data.map<FianceReportRateList>((Map<String, dynamic> e) => FianceReportRateList.fromJson(e)).toList() as M;
  232. }
  233. if (<HotelInfoEntity>[] is M) {
  234. return data.map<HotelInfoEntity>((Map<String, dynamic> e) => HotelInfoEntity.fromJson(e)).toList() as M;
  235. }
  236. if (<HotelInfoMenus>[] is M) {
  237. return data.map<HotelInfoMenus>((Map<String, dynamic> e) => HotelInfoMenus.fromJson(e)).toList() as M;
  238. }
  239. if (<HotelInfoMenusChildren>[] is M) {
  240. return data.map<HotelInfoMenusChildren>((Map<String, dynamic> e) => HotelInfoMenusChildren.fromJson(e)).toList() as M;
  241. }
  242. if (<IdNameEntity>[] is M) {
  243. return data.map<IdNameEntity>((Map<String, dynamic> e) => IdNameEntity.fromJson(e)).toList() as M;
  244. }
  245. if (<IndexOptionEntity>[] is M) {
  246. return data.map<IndexOptionEntity>((Map<String, dynamic> e) => IndexOptionEntity.fromJson(e)).toList() as M;
  247. }
  248. if (<JobAppliedEditIndexSGEntity>[] is M) {
  249. return data.map<JobAppliedEditIndexSGEntity>((Map<String, dynamic> e) => JobAppliedEditIndexSGEntity.fromJson(e)).toList() as M;
  250. }
  251. if (<JobAppliedEditIndexSGStatusList>[] is M) {
  252. return data.map<JobAppliedEditIndexSGStatusList>((Map<String, dynamic> e) => JobAppliedEditIndexSGStatusList.fromJson(e)).toList() as M;
  253. }
  254. if (<JobAppliedIndexSGEntity>[] is M) {
  255. return data.map<JobAppliedIndexSGEntity>((Map<String, dynamic> e) => JobAppliedIndexSGEntity.fromJson(e)).toList() as M;
  256. }
  257. if (<JobAppliedIndexSGStatusList>[] is M) {
  258. return data.map<JobAppliedIndexSGStatusList>((Map<String, dynamic> e) => JobAppliedIndexSGStatusList.fromJson(e)).toList() as M;
  259. }
  260. if (<JobAppliedListSGEntity>[] is M) {
  261. return data.map<JobAppliedListSGEntity>((Map<String, dynamic> e) => JobAppliedListSGEntity.fromJson(e)).toList() as M;
  262. }
  263. if (<JobAppliedListSGRows>[] is M) {
  264. return data.map<JobAppliedListSGRows>((Map<String, dynamic> e) => JobAppliedListSGRows.fromJson(e)).toList() as M;
  265. }
  266. if (<JobAppliedListSGRowsCheck>[] is M) {
  267. return data.map<JobAppliedListSGRowsCheck>((Map<String, dynamic> e) => JobAppliedListSGRowsCheck.fromJson(e)).toList() as M;
  268. }
  269. if (<JobAppliedListSGRowsStatusList>[] is M) {
  270. return data.map<JobAppliedListSGRowsStatusList>((Map<String, dynamic> e) => JobAppliedListSGRowsStatusList.fromJson(e)).toList() as M;
  271. }
  272. if (<JobAppliedRemarkViewSGEntity>[] is M) {
  273. return data.map<JobAppliedRemarkViewSGEntity>((Map<String, dynamic> e) => JobAppliedRemarkViewSGEntity.fromJson(e)).toList() as M;
  274. }
  275. if (<JobAppliedStaffSGEntity>[] is M) {
  276. return data.map<JobAppliedStaffSGEntity>((Map<String, dynamic> e) => JobAppliedStaffSGEntity.fromJson(e)).toList() as M;
  277. }
  278. if (<JobAppliedStaffSGRows>[] is M) {
  279. return data.map<JobAppliedStaffSGRows>((Map<String, dynamic> e) => JobAppliedStaffSGRows.fromJson(e)).toList() as M;
  280. }
  281. if (<JobListAddStaffEntity>[] is M) {
  282. return data.map<JobListAddStaffEntity>((Map<String, dynamic> e) => JobListAddStaffEntity.fromJson(e)).toList() as M;
  283. }
  284. if (<JobListAddStaffResultList>[] is M) {
  285. return data.map<JobListAddStaffResultList>((Map<String, dynamic> e) => JobListAddStaffResultList.fromJson(e)).toList() as M;
  286. }
  287. if (<JobListAppliedEditEntity>[] is M) {
  288. return data.map<JobListAppliedEditEntity>((Map<String, dynamic> e) => JobListAppliedEditEntity.fromJson(e)).toList() as M;
  289. }
  290. if (<JobListAppliedEditReasonList>[] is M) {
  291. return data.map<JobListAppliedEditReasonList>((Map<String, dynamic> e) => JobListAppliedEditReasonList.fromJson(e)).toList() as M;
  292. }
  293. if (<JobListAppliedInfoEntity>[] is M) {
  294. return data.map<JobListAppliedInfoEntity>((Map<String, dynamic> e) => JobListAppliedInfoEntity.fromJson(e)).toList() as M;
  295. }
  296. if (<JobListAppliedStaffListEntity>[] is M) {
  297. return data.map<JobListAppliedStaffListEntity>((Map<String, dynamic> e) => JobListAppliedStaffListEntity.fromJson(e)).toList() as M;
  298. }
  299. if (<JobListAppliedStaffListRows>[] is M) {
  300. return data.map<JobListAppliedStaffListRows>((Map<String, dynamic> e) => JobListAppliedStaffListRows.fromJson(e)).toList() as M;
  301. }
  302. if (<JobListAppliedStaffListRowsSecurityIn>[] is M) {
  303. return data.map<JobListAppliedStaffListRowsSecurityIn>((Map<String, dynamic> e) => JobListAppliedStaffListRowsSecurityIn.fromJson(e)).toList() as M;
  304. }
  305. if (<JobListAppliedStaffListRowsSecurityOut>[] is M) {
  306. return data.map<JobListAppliedStaffListRowsSecurityOut>((Map<String, dynamic> e) => JobListAppliedStaffListRowsSecurityOut.fromJson(e)).toList() as M;
  307. }
  308. if (<JobListAppliedStaffListRowsWorkIn>[] is M) {
  309. return data.map<JobListAppliedStaffListRowsWorkIn>((Map<String, dynamic> e) => JobListAppliedStaffListRowsWorkIn.fromJson(e)).toList() as M;
  310. }
  311. if (<JobListAppliedStaffListRowsWorkOut>[] is M) {
  312. return data.map<JobListAppliedStaffListRowsWorkOut>((Map<String, dynamic> e) => JobListAppliedStaffListRowsWorkOut.fromJson(e)).toList() as M;
  313. }
  314. if (<JobListAppliedStaffSearchEntity>[] is M) {
  315. return data.map<JobListAppliedStaffSearchEntity>((Map<String, dynamic> e) => JobListAppliedStaffSearchEntity.fromJson(e)).toList() as M;
  316. }
  317. if (<JobListAppliedStaffSearchRows>[] is M) {
  318. return data.map<JobListAppliedStaffSearchRows>((Map<String, dynamic> e) => JobListAppliedStaffSearchRows.fromJson(e)).toList() as M;
  319. }
  320. if (<JobListAppliedWorkFlowEntity>[] is M) {
  321. return data.map<JobListAppliedWorkFlowEntity>((Map<String, dynamic> e) => JobListAppliedWorkFlowEntity.fromJson(e)).toList() as M;
  322. }
  323. if (<JobListAppliedWorkFlowRecords>[] is M) {
  324. return data.map<JobListAppliedWorkFlowRecords>((Map<String, dynamic> e) => JobListAppliedWorkFlowRecords.fromJson(e)).toList() as M;
  325. }
  326. if (<JobListDetailEntity>[] is M) {
  327. return data.map<JobListDetailEntity>((Map<String, dynamic> e) => JobListDetailEntity.fromJson(e)).toList() as M;
  328. }
  329. if (<JobListDetailDepartmentList>[] is M) {
  330. return data.map<JobListDetailDepartmentList>((Map<String, dynamic> e) => JobListDetailDepartmentList.fromJson(e)).toList() as M;
  331. }
  332. if (<JobListEditIndexSGEntity>[] is M) {
  333. return data.map<JobListEditIndexSGEntity>((Map<String, dynamic> e) => JobListEditIndexSGEntity.fromJson(e)).toList() as M;
  334. }
  335. if (<JobListEditIndexOption>[] is M) {
  336. return data.map<JobListEditIndexOption>((Map<String, dynamic> e) => JobListEditIndexOption.fromJson(e)).toList() as M;
  337. }
  338. if (<JobListEntity>[] is M) {
  339. return data.map<JobListEntity>((Map<String, dynamic> e) => JobListEntity.fromJson(e)).toList() as M;
  340. }
  341. if (<JobListRows>[] is M) {
  342. return data.map<JobListRows>((Map<String, dynamic> e) => JobListRows.fromJson(e)).toList() as M;
  343. }
  344. if (<JobListIndexEntity>[] is M) {
  345. return data.map<JobListIndexEntity>((Map<String, dynamic> e) => JobListIndexEntity.fromJson(e)).toList() as M;
  346. }
  347. if (<JobListIndexDepartmentList>[] is M) {
  348. return data.map<JobListIndexDepartmentList>((Map<String, dynamic> e) => JobListIndexDepartmentList.fromJson(e)).toList() as M;
  349. }
  350. if (<JobListIndexStatusList>[] is M) {
  351. return data.map<JobListIndexStatusList>((Map<String, dynamic> e) => JobListIndexStatusList.fromJson(e)).toList() as M;
  352. }
  353. if (<JobListIndexSGEntity>[] is M) {
  354. return data.map<JobListIndexSGEntity>((Map<String, dynamic> e) => JobListIndexSGEntity.fromJson(e)).toList() as M;
  355. }
  356. if (<JobListIndexSGOption>[] is M) {
  357. return data.map<JobListIndexSGOption>((Map<String, dynamic> e) => JobListIndexSGOption.fromJson(e)).toList() as M;
  358. }
  359. if (<JobListRemarkViewEntity>[] is M) {
  360. return data.map<JobListRemarkViewEntity>((Map<String, dynamic> e) => JobListRemarkViewEntity.fromJson(e)).toList() as M;
  361. }
  362. if (<JobListSGEntity>[] is M) {
  363. return data.map<JobListSGEntity>((Map<String, dynamic> e) => JobListSGEntity.fromJson(e)).toList() as M;
  364. }
  365. if (<JobListSGRows>[] is M) {
  366. return data.map<JobListSGRows>((Map<String, dynamic> e) => JobListSGRows.fromJson(e)).toList() as M;
  367. }
  368. if (<JobTemplateEditIndexEntity>[] is M) {
  369. return data.map<JobTemplateEditIndexEntity>((Map<String, dynamic> e) => JobTemplateEditIndexEntity.fromJson(e)).toList() as M;
  370. }
  371. if (<JobTemplateEditIndexAgeList>[] is M) {
  372. return data.map<JobTemplateEditIndexAgeList>((Map<String, dynamic> e) => JobTemplateEditIndexAgeList.fromJson(e)).toList() as M;
  373. }
  374. if (<JobTemplateEditIndexSexList>[] is M) {
  375. return data.map<JobTemplateEditIndexSexList>((Map<String, dynamic> e) => JobTemplateEditIndexSexList.fromJson(e)).toList() as M;
  376. }
  377. if (<JobTemplateEditIndexLanguageList>[] is M) {
  378. return data.map<JobTemplateEditIndexLanguageList>((Map<String, dynamic> e) => JobTemplateEditIndexLanguageList.fromJson(e)).toList() as M;
  379. }
  380. if (<JobTemplateSGEntity>[] is M) {
  381. return data.map<JobTemplateSGEntity>((Map<String, dynamic> e) => JobTemplateSGEntity.fromJson(e)).toList() as M;
  382. }
  383. if (<JobTemplateSGRows>[] is M) {
  384. return data.map<JobTemplateSGRows>((Map<String, dynamic> e) => JobTemplateSGRows.fromJson(e)).toList() as M;
  385. }
  386. if (<JobTitleEditIndexEntity>[] is M) {
  387. return data.map<JobTitleEditIndexEntity>((Map<String, dynamic> e) => JobTitleEditIndexEntity.fromJson(e)).toList() as M;
  388. }
  389. if (<JobTitleEditIndexTemplate>[] is M) {
  390. return data.map<JobTitleEditIndexTemplate>((Map<String, dynamic> e) => JobTitleEditIndexTemplate.fromJson(e)).toList() as M;
  391. }
  392. if (<JobTitleSGEntity>[] is M) {
  393. return data.map<JobTitleSGEntity>((Map<String, dynamic> e) => JobTitleSGEntity.fromJson(e)).toList() as M;
  394. }
  395. if (<JobTitleSGRows>[] is M) {
  396. return data.map<JobTitleSGRows>((Map<String, dynamic> e) => JobTitleSGRows.fromJson(e)).toList() as M;
  397. }
  398. if (<LabourReportEntity>[] is M) {
  399. return data.map<LabourReportEntity>((Map<String, dynamic> e) => LabourReportEntity.fromJson(e)).toList() as M;
  400. }
  401. if (<LabourReportRows>[] is M) {
  402. return data.map<LabourReportRows>((Map<String, dynamic> e) => LabourReportRows.fromJson(e)).toList() as M;
  403. }
  404. if (<LabourReportTotal>[] is M) {
  405. return data.map<LabourReportTotal>((Map<String, dynamic> e) => LabourReportTotal.fromJson(e)).toList() as M;
  406. }
  407. if (<LabourReportVNEntity>[] is M) {
  408. return data.map<LabourReportVNEntity>((Map<String, dynamic> e) => LabourReportVNEntity.fromJson(e)).toList() as M;
  409. }
  410. if (<LabourReportVNRows>[] is M) {
  411. return data.map<LabourReportVNRows>((Map<String, dynamic> e) => LabourReportVNRows.fromJson(e)).toList() as M;
  412. }
  413. if (<LabourReportVNTotal>[] is M) {
  414. return data.map<LabourReportVNTotal>((Map<String, dynamic> e) => LabourReportVNTotal.fromJson(e)).toList() as M;
  415. }
  416. if (<LabourRequestEditIndexEntity>[] is M) {
  417. return data.map<LabourRequestEditIndexEntity>((Map<String, dynamic> e) => LabourRequestEditIndexEntity.fromJson(e)).toList() as M;
  418. }
  419. if (<LabourRequestEditIndexTemplateList>[] is M) {
  420. return data.map<LabourRequestEditIndexTemplateList>((Map<String, dynamic> e) => LabourRequestEditIndexTemplateList.fromJson(e)).toList() as M;
  421. }
  422. if (<LabourRequestEditIndexDepartmentList>[] is M) {
  423. return data.map<LabourRequestEditIndexDepartmentList>((Map<String, dynamic> e) => LabourRequestEditIndexDepartmentList.fromJson(e)).toList() as M;
  424. }
  425. if (<LabourRequestIndexEntity>[] is M) {
  426. return data.map<LabourRequestIndexEntity>((Map<String, dynamic> e) => LabourRequestIndexEntity.fromJson(e)).toList() as M;
  427. }
  428. if (<LabourRequestIndexDepartmentList>[] is M) {
  429. return data.map<LabourRequestIndexDepartmentList>((Map<String, dynamic> e) => LabourRequestIndexDepartmentList.fromJson(e)).toList() as M;
  430. }
  431. if (<LabourRequestIndexStatusList>[] is M) {
  432. return data.map<LabourRequestIndexStatusList>((Map<String, dynamic> e) => LabourRequestIndexStatusList.fromJson(e)).toList() as M;
  433. }
  434. if (<LabourRequestListEntity>[] is M) {
  435. return data.map<LabourRequestListEntity>((Map<String, dynamic> e) => LabourRequestListEntity.fromJson(e)).toList() as M;
  436. }
  437. if (<LabourRequestListRows>[] is M) {
  438. return data.map<LabourRequestListRows>((Map<String, dynamic> e) => LabourRequestListRows.fromJson(e)).toList() as M;
  439. }
  440. if (<LabourRequestSGAddIndexEntity>[] is M) {
  441. return data.map<LabourRequestSGAddIndexEntity>((Map<String, dynamic> e) => LabourRequestSGAddIndexEntity.fromJson(e)).toList() as M;
  442. }
  443. if (<LabourRequestSGAddIndexOption>[] is M) {
  444. return data.map<LabourRequestSGAddIndexOption>((Map<String, dynamic> e) => LabourRequestSGAddIndexOption.fromJson(e)).toList() as M;
  445. }
  446. if (<LabourRequestSGEditIndexEntity>[] is M) {
  447. return data.map<LabourRequestSGEditIndexEntity>((Map<String, dynamic> e) => LabourRequestSGEditIndexEntity.fromJson(e)).toList() as M;
  448. }
  449. if (<LabourRequestSGEditIndexJob>[] is M) {
  450. return data.map<LabourRequestSGEditIndexJob>((Map<String, dynamic> e) => LabourRequestSGEditIndexJob.fromJson(e)).toList() as M;
  451. }
  452. if (<LabourRequestSGEditSelected>[] is M) {
  453. return data.map<LabourRequestSGEditSelected>((Map<String, dynamic> e) => LabourRequestSGEditSelected.fromJson(e)).toList() as M;
  454. }
  455. if (<LabourRequestSGEditIndexChecked>[] is M) {
  456. return data.map<LabourRequestSGEditIndexChecked>((Map<String, dynamic> e) => LabourRequestSGEditIndexChecked.fromJson(e)).toList() as M;
  457. }
  458. if (<LabourRequestSGEntity>[] is M) {
  459. return data.map<LabourRequestSGEntity>((Map<String, dynamic> e) => LabourRequestSGEntity.fromJson(e)).toList() as M;
  460. }
  461. if (<LabourRequestSGCountList>[] is M) {
  462. return data.map<LabourRequestSGCountList>((Map<String, dynamic> e) => LabourRequestSGCountList.fromJson(e)).toList() as M;
  463. }
  464. if (<LabourRequestSGListEntity>[] is M) {
  465. return data.map<LabourRequestSGListEntity>((Map<String, dynamic> e) => LabourRequestSGListEntity.fromJson(e)).toList() as M;
  466. }
  467. if (<LabourRequestSGListRows>[] is M) {
  468. return data.map<LabourRequestSGListRows>((Map<String, dynamic> e) => LabourRequestSGListRows.fromJson(e)).toList() as M;
  469. }
  470. if (<LabourRequestWorkFlowEntity>[] is M) {
  471. return data.map<LabourRequestWorkFlowEntity>((Map<String, dynamic> e) => LabourRequestWorkFlowEntity.fromJson(e)).toList() as M;
  472. }
  473. if (<LabourRequestWorkFlowRecords>[] is M) {
  474. return data.map<LabourRequestWorkFlowRecords>((Map<String, dynamic> e) => LabourRequestWorkFlowRecords.fromJson(e)).toList() as M;
  475. }
  476. if (<LabourReviewListEntity>[] is M) {
  477. return data.map<LabourReviewListEntity>((Map<String, dynamic> e) => LabourReviewListEntity.fromJson(e)).toList() as M;
  478. }
  479. if (<LabourReviewListRows>[] is M) {
  480. return data.map<LabourReviewListRows>((Map<String, dynamic> e) => LabourReviewListRows.fromJson(e)).toList() as M;
  481. }
  482. if (<LabourReviewStatusEntity>[] is M) {
  483. return data.map<LabourReviewStatusEntity>((Map<String, dynamic> e) => LabourReviewStatusEntity.fromJson(e)).toList() as M;
  484. }
  485. if (<LabourReviewStatusRecords>[] is M) {
  486. return data.map<LabourReviewStatusRecords>((Map<String, dynamic> e) => LabourReviewStatusRecords.fromJson(e)).toList() as M;
  487. }
  488. if (<PositionTableEntity>[] is M) {
  489. return data.map<PositionTableEntity>((Map<String, dynamic> e) => PositionTableEntity.fromJson(e)).toList() as M;
  490. }
  491. if (<PositionTableRows>[] is M) {
  492. return data.map<PositionTableRows>((Map<String, dynamic> e) => PositionTableRows.fromJson(e)).toList() as M;
  493. }
  494. if (<ReviseIndexSGEntity>[] is M) {
  495. return data.map<ReviseIndexSGEntity>((Map<String, dynamic> e) => ReviseIndexSGEntity.fromJson(e)).toList() as M;
  496. }
  497. if (<ReviseIndexSGStatusList>[] is M) {
  498. return data.map<ReviseIndexSGStatusList>((Map<String, dynamic> e) => ReviseIndexSGStatusList.fromJson(e)).toList() as M;
  499. }
  500. if (<ReviseListSGEntity>[] is M) {
  501. return data.map<ReviseListSGEntity>((Map<String, dynamic> e) => ReviseListSGEntity.fromJson(e)).toList() as M;
  502. }
  503. if (<ReviseListSGRows>[] is M) {
  504. return data.map<ReviseListSGRows>((Map<String, dynamic> e) => ReviseListSGRows.fromJson(e)).toList() as M;
  505. }
  506. if (<ReviseLogSGEntity>[] is M) {
  507. return data.map<ReviseLogSGEntity>((Map<String, dynamic> e) => ReviseLogSGEntity.fromJson(e)).toList() as M;
  508. }
  509. if (<ReviseLogSGRecords>[] is M) {
  510. return data.map<ReviseLogSGRecords>((Map<String, dynamic> e) => ReviseLogSGRecords.fromJson(e)).toList() as M;
  511. }
  512. if (<ReviseLogSGRecordsContent>[] is M) {
  513. return data.map<ReviseLogSGRecordsContent>((Map<String, dynamic> e) => ReviseLogSGRecordsContent.fromJson(e)).toList() as M;
  514. }
  515. if (<ReviseLogSGRecordsOption>[] is M) {
  516. return data.map<ReviseLogSGRecordsOption>((Map<String, dynamic> e) => ReviseLogSGRecordsOption.fromJson(e)).toList() as M;
  517. }
  518. if (<StaffDetailEntity>[] is M) {
  519. return data.map<StaffDetailEntity>((Map<String, dynamic> e) => StaffDetailEntity.fromJson(e)).toList() as M;
  520. }
  521. if (<StaffDetailSGEntity>[] is M) {
  522. return data.map<StaffDetailSGEntity>((Map<String, dynamic> e) => StaffDetailSGEntity.fromJson(e)).toList() as M;
  523. }
  524. if (<StaffDetailSGReviews>[] is M) {
  525. return data.map<StaffDetailSGReviews>((Map<String, dynamic> e) => StaffDetailSGReviews.fromJson(e)).toList() as M;
  526. }
  527. if (<StaffDetailSGReviewsReviews>[] is M) {
  528. return data.map<StaffDetailSGReviewsReviews>((Map<String, dynamic> e) => StaffDetailSGReviewsReviews.fromJson(e)).toList() as M;
  529. }
  530. if (<StaffJobHistorySGEntity>[] is M) {
  531. return data.map<StaffJobHistorySGEntity>((Map<String, dynamic> e) => StaffJobHistorySGEntity.fromJson(e)).toList() as M;
  532. }
  533. if (<StaffJobHistorySGRows>[] is M) {
  534. return data.map<StaffJobHistorySGRows>((Map<String, dynamic> e) => StaffJobHistorySGRows.fromJson(e)).toList() as M;
  535. }
  536. if (<StaffLabourHistoryEntity>[] is M) {
  537. return data.map<StaffLabourHistoryEntity>((Map<String, dynamic> e) => StaffLabourHistoryEntity.fromJson(e)).toList() as M;
  538. }
  539. if (<StaffLabourHistoryRows>[] is M) {
  540. return data.map<StaffLabourHistoryRows>((Map<String, dynamic> e) => StaffLabourHistoryRows.fromJson(e)).toList() as M;
  541. }
  542. if (<StaffLabourHistoryRowsSecurityIn>[] is M) {
  543. return data.map<StaffLabourHistoryRowsSecurityIn>((Map<String, dynamic> e) => StaffLabourHistoryRowsSecurityIn.fromJson(e)).toList() as M;
  544. }
  545. if (<StaffLabourHistoryRowsSecurityOut>[] is M) {
  546. return data.map<StaffLabourHistoryRowsSecurityOut>((Map<String, dynamic> e) => StaffLabourHistoryRowsSecurityOut.fromJson(e)).toList() as M;
  547. }
  548. if (<StaffLabourHistoryRowsWorkIn>[] is M) {
  549. return data.map<StaffLabourHistoryRowsWorkIn>((Map<String, dynamic> e) => StaffLabourHistoryRowsWorkIn.fromJson(e)).toList() as M;
  550. }
  551. if (<StaffLabourHistoryRowsWorkOut>[] is M) {
  552. return data.map<StaffLabourHistoryRowsWorkOut>((Map<String, dynamic> e) => StaffLabourHistoryRowsWorkOut.fromJson(e)).toList() as M;
  553. }
  554. if (<StaffRemarkHistoryEntity>[] is M) {
  555. return data.map<StaffRemarkHistoryEntity>((Map<String, dynamic> e) => StaffRemarkHistoryEntity.fromJson(e)).toList() as M;
  556. }
  557. if (<StaffRemarkHistoryRows>[] is M) {
  558. return data.map<StaffRemarkHistoryRows>((Map<String, dynamic> e) => StaffRemarkHistoryRows.fromJson(e)).toList() as M;
  559. }
  560. if (<StaffReportVNEntity>[] is M) {
  561. return data.map<StaffReportVNEntity>((Map<String, dynamic> e) => StaffReportVNEntity.fromJson(e)).toList() as M;
  562. }
  563. if (<StaffRequestReportEntity>[] is M) {
  564. return data.map<StaffRequestReportEntity>((Map<String, dynamic> e) => StaffRequestReportEntity.fromJson(e)).toList() as M;
  565. }
  566. if (<StaffReviewHistorySGEntity>[] is M) {
  567. return data.map<StaffReviewHistorySGEntity>((Map<String, dynamic> e) => StaffReviewHistorySGEntity.fromJson(e)).toList() as M;
  568. }
  569. if (<StaffReviewHistorySGReviews>[] is M) {
  570. return data.map<StaffReviewHistorySGReviews>((Map<String, dynamic> e) => StaffReviewHistorySGReviews.fromJson(e)).toList() as M;
  571. }
  572. if (<ServerTime>[] is M) {
  573. return data.map<ServerTime>((Map<String, dynamic> e) => ServerTime.fromJson(e)).toList() as M;
  574. }
  575. debugPrint("$M not found");
  576. return null;
  577. }
  578. static M? fromJsonAsT<M>(dynamic json) {
  579. if (json is M) {
  580. return json;
  581. }
  582. if (json is List) {
  583. return _getListChildType<M>(json.map((dynamic e) => e as Map<String, dynamic>).toList());
  584. } else {
  585. return jsonConvert.convert<M>(json);
  586. }
  587. }
  588. }
  589. class JsonConvertClassCollection {
  590. Map<String, JsonConvertFunction> convertFuncMap = {
  591. (AddEditReviseViewSGEntity).toString(): AddEditReviseViewSGEntity.fromJson,
  592. (AgencyDetailEntity).toString(): AgencyDetailEntity.fromJson,
  593. (AgencyDetailPivot).toString(): AgencyDetailPivot.fromJson,
  594. (AgencyOptionEntity).toString(): AgencyOptionEntity.fromJson,
  595. (AgencyTableEntity).toString(): AgencyTableEntity.fromJson,
  596. (AgencyTableRows).toString(): AgencyTableRows.fromJson,
  597. (AttendanceEntity).toString(): AttendanceEntity.fromJson,
  598. (AttendanceList).toString(): AttendanceList.fromJson,
  599. (AttendanceReviewEntity).toString(): AttendanceReviewEntity.fromJson,
  600. (AttendanceReviewRows).toString(): AttendanceReviewRows.fromJson,
  601. (CheckSuccessEntity).toString(): CheckSuccessEntity.fromJson,
  602. (DeviceListEntity).toString(): DeviceListEntity.fromJson,
  603. (DeviceListRows).toString(): DeviceListRows.fromJson,
  604. (FianceReportEntity).toString(): FianceReportEntity.fromJson,
  605. (FianceReportRateList).toString(): FianceReportRateList.fromJson,
  606. (HotelInfoEntity).toString(): HotelInfoEntity.fromJson,
  607. (HotelInfoMenus).toString(): HotelInfoMenus.fromJson,
  608. (HotelInfoMenusChildren).toString(): HotelInfoMenusChildren.fromJson,
  609. (IdNameEntity).toString(): IdNameEntity.fromJson,
  610. (IndexOptionEntity).toString(): IndexOptionEntity.fromJson,
  611. (JobAppliedEditIndexSGEntity).toString(): JobAppliedEditIndexSGEntity.fromJson,
  612. (JobAppliedEditIndexSGStatusList).toString(): JobAppliedEditIndexSGStatusList.fromJson,
  613. (JobAppliedIndexSGEntity).toString(): JobAppliedIndexSGEntity.fromJson,
  614. (JobAppliedIndexSGStatusList).toString(): JobAppliedIndexSGStatusList.fromJson,
  615. (JobAppliedListSGEntity).toString(): JobAppliedListSGEntity.fromJson,
  616. (JobAppliedListSGRows).toString(): JobAppliedListSGRows.fromJson,
  617. (JobAppliedListSGRowsCheck).toString(): JobAppliedListSGRowsCheck.fromJson,
  618. (JobAppliedListSGRowsStatusList).toString(): JobAppliedListSGRowsStatusList.fromJson,
  619. (JobAppliedRemarkViewSGEntity).toString(): JobAppliedRemarkViewSGEntity.fromJson,
  620. (JobAppliedStaffSGEntity).toString(): JobAppliedStaffSGEntity.fromJson,
  621. (JobAppliedStaffSGRows).toString(): JobAppliedStaffSGRows.fromJson,
  622. (JobListAddStaffEntity).toString(): JobListAddStaffEntity.fromJson,
  623. (JobListAddStaffResultList).toString(): JobListAddStaffResultList.fromJson,
  624. (JobListAppliedEditEntity).toString(): JobListAppliedEditEntity.fromJson,
  625. (JobListAppliedEditReasonList).toString(): JobListAppliedEditReasonList.fromJson,
  626. (JobListAppliedInfoEntity).toString(): JobListAppliedInfoEntity.fromJson,
  627. (JobListAppliedStaffListEntity).toString(): JobListAppliedStaffListEntity.fromJson,
  628. (JobListAppliedStaffListRows).toString(): JobListAppliedStaffListRows.fromJson,
  629. (JobListAppliedStaffListRowsSecurityIn).toString(): JobListAppliedStaffListRowsSecurityIn.fromJson,
  630. (JobListAppliedStaffListRowsSecurityOut).toString(): JobListAppliedStaffListRowsSecurityOut.fromJson,
  631. (JobListAppliedStaffListRowsWorkIn).toString(): JobListAppliedStaffListRowsWorkIn.fromJson,
  632. (JobListAppliedStaffListRowsWorkOut).toString(): JobListAppliedStaffListRowsWorkOut.fromJson,
  633. (JobListAppliedStaffSearchEntity).toString(): JobListAppliedStaffSearchEntity.fromJson,
  634. (JobListAppliedStaffSearchRows).toString(): JobListAppliedStaffSearchRows.fromJson,
  635. (JobListAppliedWorkFlowEntity).toString(): JobListAppliedWorkFlowEntity.fromJson,
  636. (JobListAppliedWorkFlowRecords).toString(): JobListAppliedWorkFlowRecords.fromJson,
  637. (JobListDetailEntity).toString(): JobListDetailEntity.fromJson,
  638. (JobListDetailDepartmentList).toString(): JobListDetailDepartmentList.fromJson,
  639. (JobListEditIndexSGEntity).toString(): JobListEditIndexSGEntity.fromJson,
  640. (JobListEditIndexOption).toString(): JobListEditIndexOption.fromJson,
  641. (JobListEntity).toString(): JobListEntity.fromJson,
  642. (JobListRows).toString(): JobListRows.fromJson,
  643. (JobListIndexEntity).toString(): JobListIndexEntity.fromJson,
  644. (JobListIndexDepartmentList).toString(): JobListIndexDepartmentList.fromJson,
  645. (JobListIndexStatusList).toString(): JobListIndexStatusList.fromJson,
  646. (JobListIndexSGEntity).toString(): JobListIndexSGEntity.fromJson,
  647. (JobListIndexSGOption).toString(): JobListIndexSGOption.fromJson,
  648. (JobListRemarkViewEntity).toString(): JobListRemarkViewEntity.fromJson,
  649. (JobListSGEntity).toString(): JobListSGEntity.fromJson,
  650. (JobListSGRows).toString(): JobListSGRows.fromJson,
  651. (JobTemplateEditIndexEntity).toString(): JobTemplateEditIndexEntity.fromJson,
  652. (JobTemplateEditIndexAgeList).toString(): JobTemplateEditIndexAgeList.fromJson,
  653. (JobTemplateEditIndexSexList).toString(): JobTemplateEditIndexSexList.fromJson,
  654. (JobTemplateEditIndexLanguageList).toString(): JobTemplateEditIndexLanguageList.fromJson,
  655. (JobTemplateSGEntity).toString(): JobTemplateSGEntity.fromJson,
  656. (JobTemplateSGRows).toString(): JobTemplateSGRows.fromJson,
  657. (JobTitleEditIndexEntity).toString(): JobTitleEditIndexEntity.fromJson,
  658. (JobTitleEditIndexTemplate).toString(): JobTitleEditIndexTemplate.fromJson,
  659. (JobTitleSGEntity).toString(): JobTitleSGEntity.fromJson,
  660. (JobTitleSGRows).toString(): JobTitleSGRows.fromJson,
  661. (LabourReportEntity).toString(): LabourReportEntity.fromJson,
  662. (LabourReportRows).toString(): LabourReportRows.fromJson,
  663. (LabourReportTotal).toString(): LabourReportTotal.fromJson,
  664. (LabourReportVNEntity).toString(): LabourReportVNEntity.fromJson,
  665. (LabourReportVNRows).toString(): LabourReportVNRows.fromJson,
  666. (LabourReportVNTotal).toString(): LabourReportVNTotal.fromJson,
  667. (LabourRequestEditIndexEntity).toString(): LabourRequestEditIndexEntity.fromJson,
  668. (LabourRequestEditIndexTemplateList).toString(): LabourRequestEditIndexTemplateList.fromJson,
  669. (LabourRequestEditIndexDepartmentList).toString(): LabourRequestEditIndexDepartmentList.fromJson,
  670. (LabourRequestIndexEntity).toString(): LabourRequestIndexEntity.fromJson,
  671. (LabourRequestIndexDepartmentList).toString(): LabourRequestIndexDepartmentList.fromJson,
  672. (LabourRequestIndexStatusList).toString(): LabourRequestIndexStatusList.fromJson,
  673. (LabourRequestListEntity).toString(): LabourRequestListEntity.fromJson,
  674. (LabourRequestListRows).toString(): LabourRequestListRows.fromJson,
  675. (LabourRequestSGAddIndexEntity).toString(): LabourRequestSGAddIndexEntity.fromJson,
  676. (LabourRequestSGAddIndexOption).toString(): LabourRequestSGAddIndexOption.fromJson,
  677. (LabourRequestSGEditIndexEntity).toString(): LabourRequestSGEditIndexEntity.fromJson,
  678. (LabourRequestSGEditIndexJob).toString(): LabourRequestSGEditIndexJob.fromJson,
  679. (LabourRequestSGEditSelected).toString(): LabourRequestSGEditSelected.fromJson,
  680. (LabourRequestSGEditIndexChecked).toString(): LabourRequestSGEditIndexChecked.fromJson,
  681. (LabourRequestSGEntity).toString(): LabourRequestSGEntity.fromJson,
  682. (LabourRequestSGCountList).toString(): LabourRequestSGCountList.fromJson,
  683. (LabourRequestSGListEntity).toString(): LabourRequestSGListEntity.fromJson,
  684. (LabourRequestSGListRows).toString(): LabourRequestSGListRows.fromJson,
  685. (LabourRequestWorkFlowEntity).toString(): LabourRequestWorkFlowEntity.fromJson,
  686. (LabourRequestWorkFlowRecords).toString(): LabourRequestWorkFlowRecords.fromJson,
  687. (LabourReviewListEntity).toString(): LabourReviewListEntity.fromJson,
  688. (LabourReviewListRows).toString(): LabourReviewListRows.fromJson,
  689. (LabourReviewStatusEntity).toString(): LabourReviewStatusEntity.fromJson,
  690. (LabourReviewStatusRecords).toString(): LabourReviewStatusRecords.fromJson,
  691. (PositionTableEntity).toString(): PositionTableEntity.fromJson,
  692. (PositionTableRows).toString(): PositionTableRows.fromJson,
  693. (ReviseIndexSGEntity).toString(): ReviseIndexSGEntity.fromJson,
  694. (ReviseIndexSGStatusList).toString(): ReviseIndexSGStatusList.fromJson,
  695. (ReviseListSGEntity).toString(): ReviseListSGEntity.fromJson,
  696. (ReviseListSGRows).toString(): ReviseListSGRows.fromJson,
  697. (ReviseLogSGEntity).toString(): ReviseLogSGEntity.fromJson,
  698. (ReviseLogSGRecords).toString(): ReviseLogSGRecords.fromJson,
  699. (ReviseLogSGRecordsContent).toString(): ReviseLogSGRecordsContent.fromJson,
  700. (ReviseLogSGRecordsOption).toString(): ReviseLogSGRecordsOption.fromJson,
  701. (StaffDetailEntity).toString(): StaffDetailEntity.fromJson,
  702. (StaffDetailSGEntity).toString(): StaffDetailSGEntity.fromJson,
  703. (StaffDetailSGReviews).toString(): StaffDetailSGReviews.fromJson,
  704. (StaffDetailSGReviewsReviews).toString(): StaffDetailSGReviewsReviews.fromJson,
  705. (StaffJobHistorySGEntity).toString(): StaffJobHistorySGEntity.fromJson,
  706. (StaffJobHistorySGRows).toString(): StaffJobHistorySGRows.fromJson,
  707. (StaffLabourHistoryEntity).toString(): StaffLabourHistoryEntity.fromJson,
  708. (StaffLabourHistoryRows).toString(): StaffLabourHistoryRows.fromJson,
  709. (StaffLabourHistoryRowsSecurityIn).toString(): StaffLabourHistoryRowsSecurityIn.fromJson,
  710. (StaffLabourHistoryRowsSecurityOut).toString(): StaffLabourHistoryRowsSecurityOut.fromJson,
  711. (StaffLabourHistoryRowsWorkIn).toString(): StaffLabourHistoryRowsWorkIn.fromJson,
  712. (StaffLabourHistoryRowsWorkOut).toString(): StaffLabourHistoryRowsWorkOut.fromJson,
  713. (StaffRemarkHistoryEntity).toString(): StaffRemarkHistoryEntity.fromJson,
  714. (StaffRemarkHistoryRows).toString(): StaffRemarkHistoryRows.fromJson,
  715. (StaffReportVNEntity).toString(): StaffReportVNEntity.fromJson,
  716. (StaffRequestReportEntity).toString(): StaffRequestReportEntity.fromJson,
  717. (StaffReviewHistorySGEntity).toString(): StaffReviewHistorySGEntity.fromJson,
  718. (StaffReviewHistorySGReviews).toString(): StaffReviewHistorySGReviews.fromJson,
  719. (ServerTime).toString(): ServerTime.fromJson,
  720. };
  721. bool containsKey(String type) {
  722. return convertFuncMap.containsKey(type);
  723. }
  724. JsonConvertFunction? operator [](String key) {
  725. return convertFuncMap[key];
  726. }
  727. }