json_convert_content.dart 62 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072
  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/contract_detail_entity.dart';
  14. import 'package:domain/entity/response/contract_option_entity.dart';
  15. import 'package:domain/entity/response/contract_position_add_option_entity.dart';
  16. import 'package:domain/entity/response/contract_position_option_entity.dart';
  17. import 'package:domain/entity/response/contract_position_rate_detail_entity.dart';
  18. import 'package:domain/entity/response/contract_position_rate_specific_option_entity.dart';
  19. import 'package:domain/entity/response/contract_position_rate_table_entity.dart';
  20. import 'package:domain/entity/response/contract_position_table_entity.dart';
  21. import 'package:domain/entity/response/contract_table_entity.dart';
  22. import 'package:domain/entity/response/device_list_entity.dart';
  23. import 'package:domain/entity/response/fiance_report_entity.dart';
  24. import 'package:domain/entity/response/hotel_info_entity.dart';
  25. import 'package:domain/entity/response/id_name_entity.dart';
  26. import 'package:domain/entity/response/index_option_entity.dart';
  27. import 'package:domain/entity/response/job_applied_edit_index_s_g_entity.dart';
  28. import 'package:domain/entity/response/job_applied_index_s_g_entity.dart';
  29. import 'package:domain/entity/response/job_applied_list_s_g_entity.dart';
  30. import 'package:domain/entity/response/job_applied_remark_view_s_g_entity.dart';
  31. import 'package:domain/entity/response/job_applied_staff_s_g_entity.dart';
  32. import 'package:domain/entity/response/job_list_add_staff_entity.dart';
  33. import 'package:domain/entity/response/job_list_applied_edit_entity.dart';
  34. import 'package:domain/entity/response/job_list_applied_info_entity.dart';
  35. import 'package:domain/entity/response/job_list_applied_staff_list_entity.dart';
  36. import 'package:domain/entity/response/job_list_applied_staff_search_entity.dart';
  37. import 'package:domain/entity/response/job_list_applied_work_flow_entity.dart';
  38. import 'package:domain/entity/response/job_list_detail_entity.dart';
  39. import 'package:domain/entity/response/job_list_e_r_detail_entity.dart';
  40. import 'package:domain/entity/response/job_list_e_r_option_entity.dart';
  41. import 'package:domain/entity/response/job_list_edit_index_s_g_entity.dart';
  42. import 'package:domain/entity/response/job_list_entity.dart';
  43. import 'package:domain/entity/response/job_list_index_entity.dart';
  44. import 'package:domain/entity/response/job_list_index_s_g_entity.dart';
  45. import 'package:domain/entity/response/job_list_remark_view_entity.dart';
  46. import 'package:domain/entity/response/job_list_s_g_entity.dart';
  47. import 'package:domain/entity/response/job_template_edit_index_entity.dart';
  48. import 'package:domain/entity/response/job_template_s_g_entity.dart';
  49. import 'package:domain/entity/response/job_title_edit_index_entity.dart';
  50. import 'package:domain/entity/response/job_title_s_g_entity.dart';
  51. import 'package:domain/entity/response/labour_list_e_r_entity.dart';
  52. import 'package:domain/entity/response/labour_report_entity.dart';
  53. import 'package:domain/entity/response/labour_report_v_n_entity.dart';
  54. import 'package:domain/entity/response/labour_request_e_r_entity.dart';
  55. import 'package:domain/entity/response/labour_request_e_r_option_entity.dart';
  56. import 'package:domain/entity/response/labour_request_edit_index_entity.dart';
  57. import 'package:domain/entity/response/labour_request_index_entity.dart';
  58. import 'package:domain/entity/response/labour_request_list_entity.dart';
  59. import 'package:domain/entity/response/labour_request_work_flow_entity.dart';
  60. import 'package:domain/entity/response/labour_review_list_entity.dart';
  61. import 'package:domain/entity/response/labour_review_status_entity.dart';
  62. import 'package:domain/entity/response/position_table_entity.dart';
  63. import 'package:domain/entity/response/revise_index_s_g_entity.dart';
  64. import 'package:domain/entity/response/revise_list_s_g_entity.dart';
  65. import 'package:domain/entity/response/revise_log_s_g_entity.dart';
  66. import 'package:domain/entity/response/s_g_attendance_review_option_entity.dart';
  67. import 'package:domain/entity/response/s_g_attendance_review_table_entity.dart';
  68. import 'package:domain/entity/response/s_g_attendance_review_workflow_entity.dart';
  69. import 'package:domain/entity/response/s_g_dashboard_entity.dart';
  70. import 'package:domain/entity/response/s_g_labour_request_add_option_entity.dart';
  71. import 'package:domain/entity/response/s_g_labour_request_detail_entity.dart';
  72. import 'package:domain/entity/response/s_g_labour_request_option_entity.dart';
  73. import 'package:domain/entity/response/s_g_labour_request_table_entity.dart';
  74. import 'package:domain/entity/response/s_g_labour_request_worl_flow_entity.dart';
  75. import 'package:domain/entity/response/s_g_labour_review_option_entity.dart';
  76. import 'package:domain/entity/response/s_g_labour_review_table_entity.dart';
  77. import 'package:domain/entity/response/sign_in_sign_out_entity.dart';
  78. import 'package:domain/entity/response/staff_detail_entity.dart';
  79. import 'package:domain/entity/response/staff_detail_s_g_entity.dart';
  80. import 'package:domain/entity/response/staff_job_history_s_g_entity.dart';
  81. import 'package:domain/entity/response/staff_labour_history_entity.dart';
  82. import 'package:domain/entity/response/staff_remark_history_entity.dart';
  83. import 'package:domain/entity/response/staff_report_v_n_entity.dart';
  84. import 'package:domain/entity/response/staff_request_report_entity.dart';
  85. import 'package:domain/entity/response/staff_review_history_s_g_entity.dart';
  86. import 'package:domain/entity/response/switch_project_entity.dart';
  87. import 'package:domain/entity/response/t_h_applied_edit_entity.dart';
  88. import 'package:domain/entity/response/t_h_applied_employee_entity.dart';
  89. import 'package:domain/entity/response/t_h_applied_index_entity.dart';
  90. import 'package:domain/entity/response/t_h_applied_table_entity.dart';
  91. import 'package:domain/entity/response/t_h_employee_detail_entity.dart';
  92. import 'package:domain/entity/response/t_h_employee_remarks_entity.dart';
  93. import 'package:domain/entity/response/u_k_attendance_entity.dart';
  94. import 'package:domain/entity/response/u_k_report_attendance_entity.dart';
  95. import 'package:domain/entity/response/u_k_report_labour_entity.dart';
  96. import 'package:domain/entity/response/u_k_report_working_hours_entity.dart';
  97. import 'package:domain/entity/response/u_k_security_attendance_entity.dart';
  98. import 'package:domain/entity/response/u_k_security_attendance_option_entity.dart';
  99. import 'package:domain/entity/response/u_k_template_detail_entity.dart';
  100. import 'package:domain/entity/response/u_k_template_entity.dart';
  101. import 'package:domain/entity/server_time.dart';
  102. JsonConvert jsonConvert = JsonConvert();
  103. typedef JsonConvertFunction<T> = T Function(Map<String, dynamic> json);
  104. typedef EnumConvertFunction<T> = T Function(String value);
  105. typedef ConvertExceptionHandler = void Function(Object error, StackTrace stackTrace);
  106. extension MapSafeExt<K, V> on Map<K, V> {
  107. T? getOrNull<T>(K? key) {
  108. if (!containsKey(key) || key == null) {
  109. return null;
  110. } else {
  111. return this[key] as T?;
  112. }
  113. }
  114. }
  115. class JsonConvert {
  116. static ConvertExceptionHandler? onError;
  117. JsonConvertClassCollection convertFuncMap = JsonConvertClassCollection();
  118. /// 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
  119. /// https://flutter.cn/docs/development/tools/hot-reload
  120. /// class MyApp extends StatelessWidget {
  121. /// const MyApp({Key? key})
  122. /// : super(key: key);
  123. ///
  124. /// @override
  125. /// Widget build(BuildContext context) {
  126. /// jsonConvert.reassembleConvertFuncMap();
  127. /// return MaterialApp();
  128. /// }
  129. /// }
  130. void reassembleConvertFuncMap() {
  131. bool isReleaseMode = const bool.fromEnvironment('dart.vm.product');
  132. if (!isReleaseMode) {
  133. convertFuncMap = JsonConvertClassCollection();
  134. }
  135. }
  136. T? convert<T>(dynamic value, {EnumConvertFunction? enumConvert}) {
  137. if (value == null) {
  138. return null;
  139. }
  140. if (value is T) {
  141. return value;
  142. }
  143. try {
  144. return _asT<T>(value, enumConvert: enumConvert);
  145. } catch (e, stackTrace) {
  146. debugPrint('asT<$T> $e $stackTrace');
  147. if (onError != null) {
  148. onError!(e, stackTrace);
  149. }
  150. return null;
  151. }
  152. }
  153. List<T?>? convertList<T>(List<dynamic>? value, {EnumConvertFunction? enumConvert}) {
  154. if (value == null) {
  155. return null;
  156. }
  157. try {
  158. return value.map((dynamic e) => _asT<T>(e, enumConvert: enumConvert)).toList();
  159. } catch (e, stackTrace) {
  160. debugPrint('asT<$T> $e $stackTrace');
  161. if (onError != null) {
  162. onError!(e, stackTrace);
  163. }
  164. return <T>[];
  165. }
  166. }
  167. List<T>? convertListNotNull<T>(dynamic value, {EnumConvertFunction? enumConvert}) {
  168. if (value == null) {
  169. return null;
  170. }
  171. try {
  172. return (value as List<dynamic>).map((dynamic e) => _asT<T>(e, enumConvert: enumConvert)!).toList();
  173. } catch (e, stackTrace) {
  174. debugPrint('asT<$T> $e $stackTrace');
  175. if (onError != null) {
  176. onError!(e, stackTrace);
  177. }
  178. return <T>[];
  179. }
  180. }
  181. T? _asT<T extends Object?>(dynamic value,
  182. {EnumConvertFunction? enumConvert}) {
  183. final String type = T.toString();
  184. final String valueS = value.toString();
  185. if (enumConvert != null) {
  186. return enumConvert(valueS) as T;
  187. } else if (type == "String") {
  188. return valueS as T;
  189. } else if (type == "int") {
  190. final int? intValue = int.tryParse(valueS);
  191. if (intValue == null) {
  192. return double.tryParse(valueS)?.toInt() as T?;
  193. } else {
  194. return intValue as T;
  195. }
  196. } else if (type == "double") {
  197. return double.parse(valueS) as T;
  198. } else if (type == "DateTime") {
  199. return DateTime.parse(valueS) as T;
  200. } else if (type == "bool") {
  201. if (valueS == '0' || valueS == '1') {
  202. return (valueS == '1') as T;
  203. }
  204. return (valueS == 'true') as T;
  205. } else if (type == "Map" || type.startsWith("Map<")) {
  206. return value as T;
  207. } else {
  208. if (convertFuncMap.containsKey(type)) {
  209. if (value == null) {
  210. return null;
  211. }
  212. var covertFunc = convertFuncMap[type]!;
  213. if (covertFunc is Map<String, dynamic>) {
  214. return covertFunc(value as Map<String, dynamic>) as T;
  215. } else {
  216. return covertFunc(Map<String, dynamic>.from(value)) as T;
  217. }
  218. } else {
  219. throw UnimplementedError('$type unimplemented,you can try running the app again');
  220. }
  221. }
  222. }
  223. //list is returned by type
  224. static M? _getListChildType<M>(List<Map<String, dynamic>> data) {
  225. if (<AddEditReviseViewSGEntity>[] is M) {
  226. return data.map<AddEditReviseViewSGEntity>((Map<String, dynamic> e) => AddEditReviseViewSGEntity.fromJson(e)).toList() as M;
  227. }
  228. if (<AgencyDetailEntity>[] is M) {
  229. return data.map<AgencyDetailEntity>((Map<String, dynamic> e) => AgencyDetailEntity.fromJson(e)).toList() as M;
  230. }
  231. if (<AgencyDetailPivot>[] is M) {
  232. return data.map<AgencyDetailPivot>((Map<String, dynamic> e) => AgencyDetailPivot.fromJson(e)).toList() as M;
  233. }
  234. if (<AgencyOptionEntity>[] is M) {
  235. return data.map<AgencyOptionEntity>((Map<String, dynamic> e) => AgencyOptionEntity.fromJson(e)).toList() as M;
  236. }
  237. if (<AgencyTableEntity>[] is M) {
  238. return data.map<AgencyTableEntity>((Map<String, dynamic> e) => AgencyTableEntity.fromJson(e)).toList() as M;
  239. }
  240. if (<AgencyTableRows>[] is M) {
  241. return data.map<AgencyTableRows>((Map<String, dynamic> e) => AgencyTableRows.fromJson(e)).toList() as M;
  242. }
  243. if (<AttendanceEntity>[] is M) {
  244. return data.map<AttendanceEntity>((Map<String, dynamic> e) => AttendanceEntity.fromJson(e)).toList() as M;
  245. }
  246. if (<AttendanceList>[] is M) {
  247. return data.map<AttendanceList>((Map<String, dynamic> e) => AttendanceList.fromJson(e)).toList() as M;
  248. }
  249. if (<AttendanceReviewEntity>[] is M) {
  250. return data.map<AttendanceReviewEntity>((Map<String, dynamic> e) => AttendanceReviewEntity.fromJson(e)).toList() as M;
  251. }
  252. if (<AttendanceReviewRows>[] is M) {
  253. return data.map<AttendanceReviewRows>((Map<String, dynamic> e) => AttendanceReviewRows.fromJson(e)).toList() as M;
  254. }
  255. if (<CheckSuccessEntity>[] is M) {
  256. return data.map<CheckSuccessEntity>((Map<String, dynamic> e) => CheckSuccessEntity.fromJson(e)).toList() as M;
  257. }
  258. if (<ContractDetailEntity>[] is M) {
  259. return data.map<ContractDetailEntity>((Map<String, dynamic> e) => ContractDetailEntity.fromJson(e)).toList() as M;
  260. }
  261. if (<ContractDetailRow>[] is M) {
  262. return data.map<ContractDetailRow>((Map<String, dynamic> e) => ContractDetailRow.fromJson(e)).toList() as M;
  263. }
  264. if (<ContractOptionEntity>[] is M) {
  265. return data.map<ContractOptionEntity>((Map<String, dynamic> e) => ContractOptionEntity.fromJson(e)).toList() as M;
  266. }
  267. if (<ContractPositionAddOptionEntity>[] is M) {
  268. return data.map<ContractPositionAddOptionEntity>((Map<String, dynamic> e) => ContractPositionAddOptionEntity.fromJson(e)).toList() as M;
  269. }
  270. if (<ContractPositionOptionEntity>[] is M) {
  271. return data.map<ContractPositionOptionEntity>((Map<String, dynamic> e) => ContractPositionOptionEntity.fromJson(e)).toList() as M;
  272. }
  273. if (<ContractPositionRateDetailEntity>[] is M) {
  274. return data.map<ContractPositionRateDetailEntity>((Map<String, dynamic> e) => ContractPositionRateDetailEntity.fromJson(e)).toList() as M;
  275. }
  276. if (<ContractPositionRateSpecificOptionEntity>[] is M) {
  277. return data.map<ContractPositionRateSpecificOptionEntity>((Map<String, dynamic> e) => ContractPositionRateSpecificOptionEntity.fromJson(e)).toList() as M;
  278. }
  279. if (<ContractPositionRateTableEntity>[] is M) {
  280. return data.map<ContractPositionRateTableEntity>((Map<String, dynamic> e) => ContractPositionRateTableEntity.fromJson(e)).toList() as M;
  281. }
  282. if (<ContractPositionRateTableRows>[] is M) {
  283. return data.map<ContractPositionRateTableRows>((Map<String, dynamic> e) => ContractPositionRateTableRows.fromJson(e)).toList() as M;
  284. }
  285. if (<ContractPositionTableEntity>[] is M) {
  286. return data.map<ContractPositionTableEntity>((Map<String, dynamic> e) => ContractPositionTableEntity.fromJson(e)).toList() as M;
  287. }
  288. if (<ContractPositionTableRows>[] is M) {
  289. return data.map<ContractPositionTableRows>((Map<String, dynamic> e) => ContractPositionTableRows.fromJson(e)).toList() as M;
  290. }
  291. if (<ContractTableEntity>[] is M) {
  292. return data.map<ContractTableEntity>((Map<String, dynamic> e) => ContractTableEntity.fromJson(e)).toList() as M;
  293. }
  294. if (<ContractTableRows>[] is M) {
  295. return data.map<ContractTableRows>((Map<String, dynamic> e) => ContractTableRows.fromJson(e)).toList() as M;
  296. }
  297. if (<DeviceListEntity>[] is M) {
  298. return data.map<DeviceListEntity>((Map<String, dynamic> e) => DeviceListEntity.fromJson(e)).toList() as M;
  299. }
  300. if (<DeviceListRows>[] is M) {
  301. return data.map<DeviceListRows>((Map<String, dynamic> e) => DeviceListRows.fromJson(e)).toList() as M;
  302. }
  303. if (<FianceReportEntity>[] is M) {
  304. return data.map<FianceReportEntity>((Map<String, dynamic> e) => FianceReportEntity.fromJson(e)).toList() as M;
  305. }
  306. if (<FianceReportRateList>[] is M) {
  307. return data.map<FianceReportRateList>((Map<String, dynamic> e) => FianceReportRateList.fromJson(e)).toList() as M;
  308. }
  309. if (<HotelInfoEntity>[] is M) {
  310. return data.map<HotelInfoEntity>((Map<String, dynamic> e) => HotelInfoEntity.fromJson(e)).toList() as M;
  311. }
  312. if (<HotelInfoMenus>[] is M) {
  313. return data.map<HotelInfoMenus>((Map<String, dynamic> e) => HotelInfoMenus.fromJson(e)).toList() as M;
  314. }
  315. if (<HotelInfoMenusChildren>[] is M) {
  316. return data.map<HotelInfoMenusChildren>((Map<String, dynamic> e) => HotelInfoMenusChildren.fromJson(e)).toList() as M;
  317. }
  318. if (<IdNameEntity>[] is M) {
  319. return data.map<IdNameEntity>((Map<String, dynamic> e) => IdNameEntity.fromJson(e)).toList() as M;
  320. }
  321. if (<IndexOptionEntity>[] is M) {
  322. return data.map<IndexOptionEntity>((Map<String, dynamic> e) => IndexOptionEntity.fromJson(e)).toList() as M;
  323. }
  324. if (<JobAppliedEditIndexSGEntity>[] is M) {
  325. return data.map<JobAppliedEditIndexSGEntity>((Map<String, dynamic> e) => JobAppliedEditIndexSGEntity.fromJson(e)).toList() as M;
  326. }
  327. if (<JobAppliedEditIndexSGStatusList>[] is M) {
  328. return data.map<JobAppliedEditIndexSGStatusList>((Map<String, dynamic> e) => JobAppliedEditIndexSGStatusList.fromJson(e)).toList() as M;
  329. }
  330. if (<JobAppliedIndexSGEntity>[] is M) {
  331. return data.map<JobAppliedIndexSGEntity>((Map<String, dynamic> e) => JobAppliedIndexSGEntity.fromJson(e)).toList() as M;
  332. }
  333. if (<JobAppliedIndexSGStatusList>[] is M) {
  334. return data.map<JobAppliedIndexSGStatusList>((Map<String, dynamic> e) => JobAppliedIndexSGStatusList.fromJson(e)).toList() as M;
  335. }
  336. if (<JobAppliedListSGEntity>[] is M) {
  337. return data.map<JobAppliedListSGEntity>((Map<String, dynamic> e) => JobAppliedListSGEntity.fromJson(e)).toList() as M;
  338. }
  339. if (<JobAppliedListSGRows>[] is M) {
  340. return data.map<JobAppliedListSGRows>((Map<String, dynamic> e) => JobAppliedListSGRows.fromJson(e)).toList() as M;
  341. }
  342. if (<JobAppliedListSGRowsCheck>[] is M) {
  343. return data.map<JobAppliedListSGRowsCheck>((Map<String, dynamic> e) => JobAppliedListSGRowsCheck.fromJson(e)).toList() as M;
  344. }
  345. if (<JobAppliedListSGRowsStatusList>[] is M) {
  346. return data.map<JobAppliedListSGRowsStatusList>((Map<String, dynamic> e) => JobAppliedListSGRowsStatusList.fromJson(e)).toList() as M;
  347. }
  348. if (<JobAppliedRemarkViewSGEntity>[] is M) {
  349. return data.map<JobAppliedRemarkViewSGEntity>((Map<String, dynamic> e) => JobAppliedRemarkViewSGEntity.fromJson(e)).toList() as M;
  350. }
  351. if (<JobAppliedStaffSGEntity>[] is M) {
  352. return data.map<JobAppliedStaffSGEntity>((Map<String, dynamic> e) => JobAppliedStaffSGEntity.fromJson(e)).toList() as M;
  353. }
  354. if (<JobAppliedStaffSGRows>[] is M) {
  355. return data.map<JobAppliedStaffSGRows>((Map<String, dynamic> e) => JobAppliedStaffSGRows.fromJson(e)).toList() as M;
  356. }
  357. if (<JobListAddStaffEntity>[] is M) {
  358. return data.map<JobListAddStaffEntity>((Map<String, dynamic> e) => JobListAddStaffEntity.fromJson(e)).toList() as M;
  359. }
  360. if (<JobListAddStaffResultList>[] is M) {
  361. return data.map<JobListAddStaffResultList>((Map<String, dynamic> e) => JobListAddStaffResultList.fromJson(e)).toList() as M;
  362. }
  363. if (<JobListAppliedEditEntity>[] is M) {
  364. return data.map<JobListAppliedEditEntity>((Map<String, dynamic> e) => JobListAppliedEditEntity.fromJson(e)).toList() as M;
  365. }
  366. if (<JobListAppliedEditReasonList>[] is M) {
  367. return data.map<JobListAppliedEditReasonList>((Map<String, dynamic> e) => JobListAppliedEditReasonList.fromJson(e)).toList() as M;
  368. }
  369. if (<JobListAppliedInfoEntity>[] is M) {
  370. return data.map<JobListAppliedInfoEntity>((Map<String, dynamic> e) => JobListAppliedInfoEntity.fromJson(e)).toList() as M;
  371. }
  372. if (<JobListAppliedStaffListEntity>[] is M) {
  373. return data.map<JobListAppliedStaffListEntity>((Map<String, dynamic> e) => JobListAppliedStaffListEntity.fromJson(e)).toList() as M;
  374. }
  375. if (<JobListAppliedStaffListRows>[] is M) {
  376. return data.map<JobListAppliedStaffListRows>((Map<String, dynamic> e) => JobListAppliedStaffListRows.fromJson(e)).toList() as M;
  377. }
  378. if (<JobListAppliedStaffListRowsSecurityIn>[] is M) {
  379. return data.map<JobListAppliedStaffListRowsSecurityIn>((Map<String, dynamic> e) => JobListAppliedStaffListRowsSecurityIn.fromJson(e)).toList() as M;
  380. }
  381. if (<JobListAppliedStaffListRowsSecurityOut>[] is M) {
  382. return data.map<JobListAppliedStaffListRowsSecurityOut>((Map<String, dynamic> e) => JobListAppliedStaffListRowsSecurityOut.fromJson(e)).toList() as M;
  383. }
  384. if (<JobListAppliedStaffListRowsWorkIn>[] is M) {
  385. return data.map<JobListAppliedStaffListRowsWorkIn>((Map<String, dynamic> e) => JobListAppliedStaffListRowsWorkIn.fromJson(e)).toList() as M;
  386. }
  387. if (<JobListAppliedStaffListRowsWorkOut>[] is M) {
  388. return data.map<JobListAppliedStaffListRowsWorkOut>((Map<String, dynamic> e) => JobListAppliedStaffListRowsWorkOut.fromJson(e)).toList() as M;
  389. }
  390. if (<JobListAppliedStaffSearchEntity>[] is M) {
  391. return data.map<JobListAppliedStaffSearchEntity>((Map<String, dynamic> e) => JobListAppliedStaffSearchEntity.fromJson(e)).toList() as M;
  392. }
  393. if (<JobListAppliedStaffSearchRows>[] is M) {
  394. return data.map<JobListAppliedStaffSearchRows>((Map<String, dynamic> e) => JobListAppliedStaffSearchRows.fromJson(e)).toList() as M;
  395. }
  396. if (<JobListAppliedWorkFlowEntity>[] is M) {
  397. return data.map<JobListAppliedWorkFlowEntity>((Map<String, dynamic> e) => JobListAppliedWorkFlowEntity.fromJson(e)).toList() as M;
  398. }
  399. if (<JobListAppliedWorkFlowRecords>[] is M) {
  400. return data.map<JobListAppliedWorkFlowRecords>((Map<String, dynamic> e) => JobListAppliedWorkFlowRecords.fromJson(e)).toList() as M;
  401. }
  402. if (<JobListDetailEntity>[] is M) {
  403. return data.map<JobListDetailEntity>((Map<String, dynamic> e) => JobListDetailEntity.fromJson(e)).toList() as M;
  404. }
  405. if (<JobListDetailDepartmentList>[] is M) {
  406. return data.map<JobListDetailDepartmentList>((Map<String, dynamic> e) => JobListDetailDepartmentList.fromJson(e)).toList() as M;
  407. }
  408. if (<JobListERDetailEntity>[] is M) {
  409. return data.map<JobListERDetailEntity>((Map<String, dynamic> e) => JobListERDetailEntity.fromJson(e)).toList() as M;
  410. }
  411. if (<JobListERDetailJob>[] is M) {
  412. return data.map<JobListERDetailJob>((Map<String, dynamic> e) => JobListERDetailJob.fromJson(e)).toList() as M;
  413. }
  414. if (<JobListEROptionEntity>[] is M) {
  415. return data.map<JobListEROptionEntity>((Map<String, dynamic> e) => JobListEROptionEntity.fromJson(e)).toList() as M;
  416. }
  417. if (<JobListEROptionFilter>[] is M) {
  418. return data.map<JobListEROptionFilter>((Map<String, dynamic> e) => JobListEROptionFilter.fromJson(e)).toList() as M;
  419. }
  420. if (<JobListEditIndexSGEntity>[] is M) {
  421. return data.map<JobListEditIndexSGEntity>((Map<String, dynamic> e) => JobListEditIndexSGEntity.fromJson(e)).toList() as M;
  422. }
  423. if (<JobListEditIndexOption>[] is M) {
  424. return data.map<JobListEditIndexOption>((Map<String, dynamic> e) => JobListEditIndexOption.fromJson(e)).toList() as M;
  425. }
  426. if (<JobListEntity>[] is M) {
  427. return data.map<JobListEntity>((Map<String, dynamic> e) => JobListEntity.fromJson(e)).toList() as M;
  428. }
  429. if (<JobListRows>[] is M) {
  430. return data.map<JobListRows>((Map<String, dynamic> e) => JobListRows.fromJson(e)).toList() as M;
  431. }
  432. if (<JobListIndexEntity>[] is M) {
  433. return data.map<JobListIndexEntity>((Map<String, dynamic> e) => JobListIndexEntity.fromJson(e)).toList() as M;
  434. }
  435. if (<JobListIndexDepartmentList>[] is M) {
  436. return data.map<JobListIndexDepartmentList>((Map<String, dynamic> e) => JobListIndexDepartmentList.fromJson(e)).toList() as M;
  437. }
  438. if (<JobListIndexStatusList>[] is M) {
  439. return data.map<JobListIndexStatusList>((Map<String, dynamic> e) => JobListIndexStatusList.fromJson(e)).toList() as M;
  440. }
  441. if (<JobListIndexSGEntity>[] is M) {
  442. return data.map<JobListIndexSGEntity>((Map<String, dynamic> e) => JobListIndexSGEntity.fromJson(e)).toList() as M;
  443. }
  444. if (<JobListIndexSGOption>[] is M) {
  445. return data.map<JobListIndexSGOption>((Map<String, dynamic> e) => JobListIndexSGOption.fromJson(e)).toList() as M;
  446. }
  447. if (<JobListRemarkViewEntity>[] is M) {
  448. return data.map<JobListRemarkViewEntity>((Map<String, dynamic> e) => JobListRemarkViewEntity.fromJson(e)).toList() as M;
  449. }
  450. if (<JobListSGEntity>[] is M) {
  451. return data.map<JobListSGEntity>((Map<String, dynamic> e) => JobListSGEntity.fromJson(e)).toList() as M;
  452. }
  453. if (<JobListSGRows>[] is M) {
  454. return data.map<JobListSGRows>((Map<String, dynamic> e) => JobListSGRows.fromJson(e)).toList() as M;
  455. }
  456. if (<JobTemplateEditIndexEntity>[] is M) {
  457. return data.map<JobTemplateEditIndexEntity>((Map<String, dynamic> e) => JobTemplateEditIndexEntity.fromJson(e)).toList() as M;
  458. }
  459. if (<JobTemplateEditIndexAgeList>[] is M) {
  460. return data.map<JobTemplateEditIndexAgeList>((Map<String, dynamic> e) => JobTemplateEditIndexAgeList.fromJson(e)).toList() as M;
  461. }
  462. if (<JobTemplateEditIndexSexList>[] is M) {
  463. return data.map<JobTemplateEditIndexSexList>((Map<String, dynamic> e) => JobTemplateEditIndexSexList.fromJson(e)).toList() as M;
  464. }
  465. if (<JobTemplateEditIndexLanguageList>[] is M) {
  466. return data.map<JobTemplateEditIndexLanguageList>((Map<String, dynamic> e) => JobTemplateEditIndexLanguageList.fromJson(e)).toList() as M;
  467. }
  468. if (<JobTemplateSGEntity>[] is M) {
  469. return data.map<JobTemplateSGEntity>((Map<String, dynamic> e) => JobTemplateSGEntity.fromJson(e)).toList() as M;
  470. }
  471. if (<JobTemplateSGRows>[] is M) {
  472. return data.map<JobTemplateSGRows>((Map<String, dynamic> e) => JobTemplateSGRows.fromJson(e)).toList() as M;
  473. }
  474. if (<JobTitleEditIndexEntity>[] is M) {
  475. return data.map<JobTitleEditIndexEntity>((Map<String, dynamic> e) => JobTitleEditIndexEntity.fromJson(e)).toList() as M;
  476. }
  477. if (<JobTitleEditIndexTemplate>[] is M) {
  478. return data.map<JobTitleEditIndexTemplate>((Map<String, dynamic> e) => JobTitleEditIndexTemplate.fromJson(e)).toList() as M;
  479. }
  480. if (<JobTitleSGEntity>[] is M) {
  481. return data.map<JobTitleSGEntity>((Map<String, dynamic> e) => JobTitleSGEntity.fromJson(e)).toList() as M;
  482. }
  483. if (<JobTitleSGRows>[] is M) {
  484. return data.map<JobTitleSGRows>((Map<String, dynamic> e) => JobTitleSGRows.fromJson(e)).toList() as M;
  485. }
  486. if (<LabourListEREntity>[] is M) {
  487. return data.map<LabourListEREntity>((Map<String, dynamic> e) => LabourListEREntity.fromJson(e)).toList() as M;
  488. }
  489. if (<LabourListERRows>[] is M) {
  490. return data.map<LabourListERRows>((Map<String, dynamic> e) => LabourListERRows.fromJson(e)).toList() as M;
  491. }
  492. if (<LabourReportEntity>[] is M) {
  493. return data.map<LabourReportEntity>((Map<String, dynamic> e) => LabourReportEntity.fromJson(e)).toList() as M;
  494. }
  495. if (<LabourReportRows>[] is M) {
  496. return data.map<LabourReportRows>((Map<String, dynamic> e) => LabourReportRows.fromJson(e)).toList() as M;
  497. }
  498. if (<LabourReportTotal>[] is M) {
  499. return data.map<LabourReportTotal>((Map<String, dynamic> e) => LabourReportTotal.fromJson(e)).toList() as M;
  500. }
  501. if (<LabourReportVNEntity>[] is M) {
  502. return data.map<LabourReportVNEntity>((Map<String, dynamic> e) => LabourReportVNEntity.fromJson(e)).toList() as M;
  503. }
  504. if (<LabourReportVNRows>[] is M) {
  505. return data.map<LabourReportVNRows>((Map<String, dynamic> e) => LabourReportVNRows.fromJson(e)).toList() as M;
  506. }
  507. if (<LabourReportVNTotal>[] is M) {
  508. return data.map<LabourReportVNTotal>((Map<String, dynamic> e) => LabourReportVNTotal.fromJson(e)).toList() as M;
  509. }
  510. if (<LabourRequestEREntity>[] is M) {
  511. return data.map<LabourRequestEREntity>((Map<String, dynamic> e) => LabourRequestEREntity.fromJson(e)).toList() as M;
  512. }
  513. if (<LabourRequestERCountList>[] is M) {
  514. return data.map<LabourRequestERCountList>((Map<String, dynamic> e) => LabourRequestERCountList.fromJson(e)).toList() as M;
  515. }
  516. if (<LabourRequestERSourceList>[] is M) {
  517. return data.map<LabourRequestERSourceList>((Map<String, dynamic> e) => LabourRequestERSourceList.fromJson(e)).toList() as M;
  518. }
  519. if (<LabourRequestERSourceListRequestList>[] is M) {
  520. return data.map<LabourRequestERSourceListRequestList>((Map<String, dynamic> e) => LabourRequestERSourceListRequestList.fromJson(e)).toList() as M;
  521. }
  522. if (<LabourRequestEROptionEntity>[] is M) {
  523. return data.map<LabourRequestEROptionEntity>((Map<String, dynamic> e) => LabourRequestEROptionEntity.fromJson(e)).toList() as M;
  524. }
  525. if (<LabourRequestEditIndexEntity>[] is M) {
  526. return data.map<LabourRequestEditIndexEntity>((Map<String, dynamic> e) => LabourRequestEditIndexEntity.fromJson(e)).toList() as M;
  527. }
  528. if (<LabourRequestEditIndexTemplateList>[] is M) {
  529. return data.map<LabourRequestEditIndexTemplateList>((Map<String, dynamic> e) => LabourRequestEditIndexTemplateList.fromJson(e)).toList() as M;
  530. }
  531. if (<LabourRequestEditIndexDepartmentList>[] is M) {
  532. return data.map<LabourRequestEditIndexDepartmentList>((Map<String, dynamic> e) => LabourRequestEditIndexDepartmentList.fromJson(e)).toList() as M;
  533. }
  534. if (<LabourRequestIndexEntity>[] is M) {
  535. return data.map<LabourRequestIndexEntity>((Map<String, dynamic> e) => LabourRequestIndexEntity.fromJson(e)).toList() as M;
  536. }
  537. if (<LabourRequestIndexDepartmentList>[] is M) {
  538. return data.map<LabourRequestIndexDepartmentList>((Map<String, dynamic> e) => LabourRequestIndexDepartmentList.fromJson(e)).toList() as M;
  539. }
  540. if (<LabourRequestIndexStatusList>[] is M) {
  541. return data.map<LabourRequestIndexStatusList>((Map<String, dynamic> e) => LabourRequestIndexStatusList.fromJson(e)).toList() as M;
  542. }
  543. if (<LabourRequestListEntity>[] is M) {
  544. return data.map<LabourRequestListEntity>((Map<String, dynamic> e) => LabourRequestListEntity.fromJson(e)).toList() as M;
  545. }
  546. if (<LabourRequestListRows>[] is M) {
  547. return data.map<LabourRequestListRows>((Map<String, dynamic> e) => LabourRequestListRows.fromJson(e)).toList() as M;
  548. }
  549. if (<LabourRequestWorkFlowEntity>[] is M) {
  550. return data.map<LabourRequestWorkFlowEntity>((Map<String, dynamic> e) => LabourRequestWorkFlowEntity.fromJson(e)).toList() as M;
  551. }
  552. if (<LabourRequestWorkFlowRecords>[] is M) {
  553. return data.map<LabourRequestWorkFlowRecords>((Map<String, dynamic> e) => LabourRequestWorkFlowRecords.fromJson(e)).toList() as M;
  554. }
  555. if (<LabourReviewListEntity>[] is M) {
  556. return data.map<LabourReviewListEntity>((Map<String, dynamic> e) => LabourReviewListEntity.fromJson(e)).toList() as M;
  557. }
  558. if (<LabourReviewListRows>[] is M) {
  559. return data.map<LabourReviewListRows>((Map<String, dynamic> e) => LabourReviewListRows.fromJson(e)).toList() as M;
  560. }
  561. if (<LabourReviewStatusEntity>[] is M) {
  562. return data.map<LabourReviewStatusEntity>((Map<String, dynamic> e) => LabourReviewStatusEntity.fromJson(e)).toList() as M;
  563. }
  564. if (<LabourReviewStatusRecords>[] is M) {
  565. return data.map<LabourReviewStatusRecords>((Map<String, dynamic> e) => LabourReviewStatusRecords.fromJson(e)).toList() as M;
  566. }
  567. if (<PositionTableEntity>[] is M) {
  568. return data.map<PositionTableEntity>((Map<String, dynamic> e) => PositionTableEntity.fromJson(e)).toList() as M;
  569. }
  570. if (<PositionTableRows>[] is M) {
  571. return data.map<PositionTableRows>((Map<String, dynamic> e) => PositionTableRows.fromJson(e)).toList() as M;
  572. }
  573. if (<ReviseIndexSGEntity>[] is M) {
  574. return data.map<ReviseIndexSGEntity>((Map<String, dynamic> e) => ReviseIndexSGEntity.fromJson(e)).toList() as M;
  575. }
  576. if (<ReviseIndexSGStatusList>[] is M) {
  577. return data.map<ReviseIndexSGStatusList>((Map<String, dynamic> e) => ReviseIndexSGStatusList.fromJson(e)).toList() as M;
  578. }
  579. if (<ReviseListSGEntity>[] is M) {
  580. return data.map<ReviseListSGEntity>((Map<String, dynamic> e) => ReviseListSGEntity.fromJson(e)).toList() as M;
  581. }
  582. if (<ReviseListSGRows>[] is M) {
  583. return data.map<ReviseListSGRows>((Map<String, dynamic> e) => ReviseListSGRows.fromJson(e)).toList() as M;
  584. }
  585. if (<ReviseLogSGEntity>[] is M) {
  586. return data.map<ReviseLogSGEntity>((Map<String, dynamic> e) => ReviseLogSGEntity.fromJson(e)).toList() as M;
  587. }
  588. if (<ReviseLogSGRecords>[] is M) {
  589. return data.map<ReviseLogSGRecords>((Map<String, dynamic> e) => ReviseLogSGRecords.fromJson(e)).toList() as M;
  590. }
  591. if (<ReviseLogSGRecordsContent>[] is M) {
  592. return data.map<ReviseLogSGRecordsContent>((Map<String, dynamic> e) => ReviseLogSGRecordsContent.fromJson(e)).toList() as M;
  593. }
  594. if (<ReviseLogSGRecordsOption>[] is M) {
  595. return data.map<ReviseLogSGRecordsOption>((Map<String, dynamic> e) => ReviseLogSGRecordsOption.fromJson(e)).toList() as M;
  596. }
  597. if (<SGAttendanceReviewOptionEntity>[] is M) {
  598. return data.map<SGAttendanceReviewOptionEntity>((Map<String, dynamic> e) => SGAttendanceReviewOptionEntity.fromJson(e)).toList() as M;
  599. }
  600. if (<SGAttendanceReviewTableEntity>[] is M) {
  601. return data.map<SGAttendanceReviewTableEntity>((Map<String, dynamic> e) => SGAttendanceReviewTableEntity.fromJson(e)).toList() as M;
  602. }
  603. if (<SGAttendanceReviewTableRows>[] is M) {
  604. return data.map<SGAttendanceReviewTableRows>((Map<String, dynamic> e) => SGAttendanceReviewTableRows.fromJson(e)).toList() as M;
  605. }
  606. if (<SGAttendanceReviewTableRowsCheck>[] is M) {
  607. return data.map<SGAttendanceReviewTableRowsCheck>((Map<String, dynamic> e) => SGAttendanceReviewTableRowsCheck.fromJson(e)).toList() as M;
  608. }
  609. if (<SGAttendanceReviewWorkflowEntity>[] is M) {
  610. return data.map<SGAttendanceReviewWorkflowEntity>((Map<String, dynamic> e) => SGAttendanceReviewWorkflowEntity.fromJson(e)).toList() as M;
  611. }
  612. if (<SGAttendanceReviewWorkflowRow>[] is M) {
  613. return data.map<SGAttendanceReviewWorkflowRow>((Map<String, dynamic> e) => SGAttendanceReviewWorkflowRow.fromJson(e)).toList() as M;
  614. }
  615. if (<SGAttendanceReviewWorkflowRecords>[] is M) {
  616. return data.map<SGAttendanceReviewWorkflowRecords>((Map<String, dynamic> e) => SGAttendanceReviewWorkflowRecords.fromJson(e)).toList() as M;
  617. }
  618. if (<SGDashboardEntity>[] is M) {
  619. return data.map<SGDashboardEntity>((Map<String, dynamic> e) => SGDashboardEntity.fromJson(e)).toList() as M;
  620. }
  621. if (<SGDashboardAgencyList>[] is M) {
  622. return data.map<SGDashboardAgencyList>((Map<String, dynamic> e) => SGDashboardAgencyList.fromJson(e)).toList() as M;
  623. }
  624. if (<SGDashboardAgencyListDays>[] is M) {
  625. return data.map<SGDashboardAgencyListDays>((Map<String, dynamic> e) => SGDashboardAgencyListDays.fromJson(e)).toList() as M;
  626. }
  627. if (<SGLabourRequestAddOptionEntity>[] is M) {
  628. return data.map<SGLabourRequestAddOptionEntity>((Map<String, dynamic> e) => SGLabourRequestAddOptionEntity.fromJson(e)).toList() as M;
  629. }
  630. if (<LabourRequestAgencyEntity>[] is M) {
  631. return data.map<LabourRequestAgencyEntity>((Map<String, dynamic> e) => LabourRequestAgencyEntity.fromJson(e)).toList() as M;
  632. }
  633. if (<SGLabourRequestDetailEntity>[] is M) {
  634. return data.map<SGLabourRequestDetailEntity>((Map<String, dynamic> e) => SGLabourRequestDetailEntity.fromJson(e)).toList() as M;
  635. }
  636. if (<SGLabourRequestDetailLabReq>[] is M) {
  637. return data.map<SGLabourRequestDetailLabReq>((Map<String, dynamic> e) => SGLabourRequestDetailLabReq.fromJson(e)).toList() as M;
  638. }
  639. if (<SGLabourRequestOptionEntity>[] is M) {
  640. return data.map<SGLabourRequestOptionEntity>((Map<String, dynamic> e) => SGLabourRequestOptionEntity.fromJson(e)).toList() as M;
  641. }
  642. if (<SGLabourRequestTableEntity>[] is M) {
  643. return data.map<SGLabourRequestTableEntity>((Map<String, dynamic> e) => SGLabourRequestTableEntity.fromJson(e)).toList() as M;
  644. }
  645. if (<SGLabourRequestTableRows>[] is M) {
  646. return data.map<SGLabourRequestTableRows>((Map<String, dynamic> e) => SGLabourRequestTableRows.fromJson(e)).toList() as M;
  647. }
  648. if (<SGLabourRequestWorlFlowEntity>[] is M) {
  649. return data.map<SGLabourRequestWorlFlowEntity>((Map<String, dynamic> e) => SGLabourRequestWorlFlowEntity.fromJson(e)).toList() as M;
  650. }
  651. if (<SGLabourRequestWorlFlowRow>[] is M) {
  652. return data.map<SGLabourRequestWorlFlowRow>((Map<String, dynamic> e) => SGLabourRequestWorlFlowRow.fromJson(e)).toList() as M;
  653. }
  654. if (<SGLabourRequestWorlFlowRecords>[] is M) {
  655. return data.map<SGLabourRequestWorlFlowRecords>((Map<String, dynamic> e) => SGLabourRequestWorlFlowRecords.fromJson(e)).toList() as M;
  656. }
  657. if (<SGLabourReviewOptionEntity>[] is M) {
  658. return data.map<SGLabourReviewOptionEntity>((Map<String, dynamic> e) => SGLabourReviewOptionEntity.fromJson(e)).toList() as M;
  659. }
  660. if (<SGLabourReviewTableEntity>[] is M) {
  661. return data.map<SGLabourReviewTableEntity>((Map<String, dynamic> e) => SGLabourReviewTableEntity.fromJson(e)).toList() as M;
  662. }
  663. if (<SGLabourReviewTableRows>[] is M) {
  664. return data.map<SGLabourReviewTableRows>((Map<String, dynamic> e) => SGLabourReviewTableRows.fromJson(e)).toList() as M;
  665. }
  666. if (<SignInSignOutEntity>[] is M) {
  667. return data.map<SignInSignOutEntity>((Map<String, dynamic> e) => SignInSignOutEntity.fromJson(e)).toList() as M;
  668. }
  669. if (<SignInSignOutRows>[] is M) {
  670. return data.map<SignInSignOutRows>((Map<String, dynamic> e) => SignInSignOutRows.fromJson(e)).toList() as M;
  671. }
  672. if (<StaffDetailEntity>[] is M) {
  673. return data.map<StaffDetailEntity>((Map<String, dynamic> e) => StaffDetailEntity.fromJson(e)).toList() as M;
  674. }
  675. if (<StaffDetailSGEntity>[] is M) {
  676. return data.map<StaffDetailSGEntity>((Map<String, dynamic> e) => StaffDetailSGEntity.fromJson(e)).toList() as M;
  677. }
  678. if (<StaffDetailSGReviews>[] is M) {
  679. return data.map<StaffDetailSGReviews>((Map<String, dynamic> e) => StaffDetailSGReviews.fromJson(e)).toList() as M;
  680. }
  681. if (<StaffDetailSGReviewsReviews>[] is M) {
  682. return data.map<StaffDetailSGReviewsReviews>((Map<String, dynamic> e) => StaffDetailSGReviewsReviews.fromJson(e)).toList() as M;
  683. }
  684. if (<StaffJobHistorySGEntity>[] is M) {
  685. return data.map<StaffJobHistorySGEntity>((Map<String, dynamic> e) => StaffJobHistorySGEntity.fromJson(e)).toList() as M;
  686. }
  687. if (<StaffJobHistorySGRows>[] is M) {
  688. return data.map<StaffJobHistorySGRows>((Map<String, dynamic> e) => StaffJobHistorySGRows.fromJson(e)).toList() as M;
  689. }
  690. if (<StaffLabourHistoryEntity>[] is M) {
  691. return data.map<StaffLabourHistoryEntity>((Map<String, dynamic> e) => StaffLabourHistoryEntity.fromJson(e)).toList() as M;
  692. }
  693. if (<StaffLabourHistoryRows>[] is M) {
  694. return data.map<StaffLabourHistoryRows>((Map<String, dynamic> e) => StaffLabourHistoryRows.fromJson(e)).toList() as M;
  695. }
  696. if (<StaffLabourHistoryRowsSecurityIn>[] is M) {
  697. return data.map<StaffLabourHistoryRowsSecurityIn>((Map<String, dynamic> e) => StaffLabourHistoryRowsSecurityIn.fromJson(e)).toList() as M;
  698. }
  699. if (<StaffLabourHistoryRowsSecurityOut>[] is M) {
  700. return data.map<StaffLabourHistoryRowsSecurityOut>((Map<String, dynamic> e) => StaffLabourHistoryRowsSecurityOut.fromJson(e)).toList() as M;
  701. }
  702. if (<StaffLabourHistoryRowsWorkIn>[] is M) {
  703. return data.map<StaffLabourHistoryRowsWorkIn>((Map<String, dynamic> e) => StaffLabourHistoryRowsWorkIn.fromJson(e)).toList() as M;
  704. }
  705. if (<StaffLabourHistoryRowsWorkOut>[] is M) {
  706. return data.map<StaffLabourHistoryRowsWorkOut>((Map<String, dynamic> e) => StaffLabourHistoryRowsWorkOut.fromJson(e)).toList() as M;
  707. }
  708. if (<StaffRemarkHistoryEntity>[] is M) {
  709. return data.map<StaffRemarkHistoryEntity>((Map<String, dynamic> e) => StaffRemarkHistoryEntity.fromJson(e)).toList() as M;
  710. }
  711. if (<StaffRemarkHistoryRows>[] is M) {
  712. return data.map<StaffRemarkHistoryRows>((Map<String, dynamic> e) => StaffRemarkHistoryRows.fromJson(e)).toList() as M;
  713. }
  714. if (<StaffReportVNEntity>[] is M) {
  715. return data.map<StaffReportVNEntity>((Map<String, dynamic> e) => StaffReportVNEntity.fromJson(e)).toList() as M;
  716. }
  717. if (<StaffRequestReportEntity>[] is M) {
  718. return data.map<StaffRequestReportEntity>((Map<String, dynamic> e) => StaffRequestReportEntity.fromJson(e)).toList() as M;
  719. }
  720. if (<StaffReviewHistorySGEntity>[] is M) {
  721. return data.map<StaffReviewHistorySGEntity>((Map<String, dynamic> e) => StaffReviewHistorySGEntity.fromJson(e)).toList() as M;
  722. }
  723. if (<StaffReviewHistorySGReviews>[] is M) {
  724. return data.map<StaffReviewHistorySGReviews>((Map<String, dynamic> e) => StaffReviewHistorySGReviews.fromJson(e)).toList() as M;
  725. }
  726. if (<SwitchProjectEntity>[] is M) {
  727. return data.map<SwitchProjectEntity>((Map<String, dynamic> e) => SwitchProjectEntity.fromJson(e)).toList() as M;
  728. }
  729. if (<SwitchProjectUserList>[] is M) {
  730. return data.map<SwitchProjectUserList>((Map<String, dynamic> e) => SwitchProjectUserList.fromJson(e)).toList() as M;
  731. }
  732. if (<THAppliedEditEntity>[] is M) {
  733. return data.map<THAppliedEditEntity>((Map<String, dynamic> e) => THAppliedEditEntity.fromJson(e)).toList() as M;
  734. }
  735. if (<THAppliedEditApplied>[] is M) {
  736. return data.map<THAppliedEditApplied>((Map<String, dynamic> e) => THAppliedEditApplied.fromJson(e)).toList() as M;
  737. }
  738. if (<THAppliedEmployeeEntity>[] is M) {
  739. return data.map<THAppliedEmployeeEntity>((Map<String, dynamic> e) => THAppliedEmployeeEntity.fromJson(e)).toList() as M;
  740. }
  741. if (<THAppliedEmployeeRows>[] is M) {
  742. return data.map<THAppliedEmployeeRows>((Map<String, dynamic> e) => THAppliedEmployeeRows.fromJson(e)).toList() as M;
  743. }
  744. if (<THAppliedIndexEntity>[] is M) {
  745. return data.map<THAppliedIndexEntity>((Map<String, dynamic> e) => THAppliedIndexEntity.fromJson(e)).toList() as M;
  746. }
  747. if (<THAppliedIndexJob>[] is M) {
  748. return data.map<THAppliedIndexJob>((Map<String, dynamic> e) => THAppliedIndexJob.fromJson(e)).toList() as M;
  749. }
  750. if (<THAppliedTableEntity>[] is M) {
  751. return data.map<THAppliedTableEntity>((Map<String, dynamic> e) => THAppliedTableEntity.fromJson(e)).toList() as M;
  752. }
  753. if (<THAppliedTableRows>[] is M) {
  754. return data.map<THAppliedTableRows>((Map<String, dynamic> e) => THAppliedTableRows.fromJson(e)).toList() as M;
  755. }
  756. if (<THAppliedTableCheckInOut>[] is M) {
  757. return data.map<THAppliedTableCheckInOut>((Map<String, dynamic> e) => THAppliedTableCheckInOut.fromJson(e)).toList() as M;
  758. }
  759. if (<THEmployeeDetailEntity>[] is M) {
  760. return data.map<THEmployeeDetailEntity>((Map<String, dynamic> e) => THEmployeeDetailEntity.fromJson(e)).toList() as M;
  761. }
  762. if (<THEmployeeDetailStaff>[] is M) {
  763. return data.map<THEmployeeDetailStaff>((Map<String, dynamic> e) => THEmployeeDetailStaff.fromJson(e)).toList() as M;
  764. }
  765. if (<THEmployeeDetailReviews>[] is M) {
  766. return data.map<THEmployeeDetailReviews>((Map<String, dynamic> e) => THEmployeeDetailReviews.fromJson(e)).toList() as M;
  767. }
  768. if (<THEmployeeRemarksEntity>[] is M) {
  769. return data.map<THEmployeeRemarksEntity>((Map<String, dynamic> e) => THEmployeeRemarksEntity.fromJson(e)).toList() as M;
  770. }
  771. if (<THEmployeeRemarksReviews>[] is M) {
  772. return data.map<THEmployeeRemarksReviews>((Map<String, dynamic> e) => THEmployeeRemarksReviews.fromJson(e)).toList() as M;
  773. }
  774. if (<UKAttendanceEntity>[] is M) {
  775. return data.map<UKAttendanceEntity>((Map<String, dynamic> e) => UKAttendanceEntity.fromJson(e)).toList() as M;
  776. }
  777. if (<UKAttendanceRows>[] is M) {
  778. return data.map<UKAttendanceRows>((Map<String, dynamic> e) => UKAttendanceRows.fromJson(e)).toList() as M;
  779. }
  780. if (<UKAttendanceInOut>[] is M) {
  781. return data.map<UKAttendanceInOut>((Map<String, dynamic> e) => UKAttendanceInOut.fromJson(e)).toList() as M;
  782. }
  783. if (<UKReportAttendanceEntity>[] is M) {
  784. return data.map<UKReportAttendanceEntity>((Map<String, dynamic> e) => UKReportAttendanceEntity.fromJson(e)).toList() as M;
  785. }
  786. if (<UKReportAttendanceRows>[] is M) {
  787. return data.map<UKReportAttendanceRows>((Map<String, dynamic> e) => UKReportAttendanceRows.fromJson(e)).toList() as M;
  788. }
  789. if (<UKReportLabourEntity>[] is M) {
  790. return data.map<UKReportLabourEntity>((Map<String, dynamic> e) => UKReportLabourEntity.fromJson(e)).toList() as M;
  791. }
  792. if (<UKReportLabourRows>[] is M) {
  793. return data.map<UKReportLabourRows>((Map<String, dynamic> e) => UKReportLabourRows.fromJson(e)).toList() as M;
  794. }
  795. if (<UKReportWorkingHoursEntity>[] is M) {
  796. return data.map<UKReportWorkingHoursEntity>((Map<String, dynamic> e) => UKReportWorkingHoursEntity.fromJson(e)).toList() as M;
  797. }
  798. if (<UKReportWorkingHoursRows>[] is M) {
  799. return data.map<UKReportWorkingHoursRows>((Map<String, dynamic> e) => UKReportWorkingHoursRows.fromJson(e)).toList() as M;
  800. }
  801. if (<UKSecurityAttendanceEntity>[] is M) {
  802. return data.map<UKSecurityAttendanceEntity>((Map<String, dynamic> e) => UKSecurityAttendanceEntity.fromJson(e)).toList() as M;
  803. }
  804. if (<UKSecurityAttendanceRows>[] is M) {
  805. return data.map<UKSecurityAttendanceRows>((Map<String, dynamic> e) => UKSecurityAttendanceRows.fromJson(e)).toList() as M;
  806. }
  807. if (<UKSecurityInOut>[] is M) {
  808. return data.map<UKSecurityInOut>((Map<String, dynamic> e) => UKSecurityInOut.fromJson(e)).toList() as M;
  809. }
  810. if (<UKSecurityAttendanceOptionEntity>[] is M) {
  811. return data.map<UKSecurityAttendanceOptionEntity>((Map<String, dynamic> e) => UKSecurityAttendanceOptionEntity.fromJson(e)).toList() as M;
  812. }
  813. if (<UKSecurityAttendanceOptionFilter>[] is M) {
  814. return data.map<UKSecurityAttendanceOptionFilter>((Map<String, dynamic> e) => UKSecurityAttendanceOptionFilter.fromJson(e)).toList() as M;
  815. }
  816. if (<UKTemplateDetailEntity>[] is M) {
  817. return data.map<UKTemplateDetailEntity>((Map<String, dynamic> e) => UKTemplateDetailEntity.fromJson(e)).toList() as M;
  818. }
  819. if (<UKTemplateDetailRow>[] is M) {
  820. return data.map<UKTemplateDetailRow>((Map<String, dynamic> e) => UKTemplateDetailRow.fromJson(e)).toList() as M;
  821. }
  822. if (<UKTemplateEntity>[] is M) {
  823. return data.map<UKTemplateEntity>((Map<String, dynamic> e) => UKTemplateEntity.fromJson(e)).toList() as M;
  824. }
  825. if (<UKTemplateRows>[] is M) {
  826. return data.map<UKTemplateRows>((Map<String, dynamic> e) => UKTemplateRows.fromJson(e)).toList() as M;
  827. }
  828. if (<ServerTime>[] is M) {
  829. return data.map<ServerTime>((Map<String, dynamic> e) => ServerTime.fromJson(e)).toList() as M;
  830. }
  831. debugPrint("$M not found");
  832. return null;
  833. }
  834. static M? fromJsonAsT<M>(dynamic json) {
  835. if (json is M) {
  836. return json;
  837. }
  838. if (json is List) {
  839. return _getListChildType<M>(json.map((dynamic e) => e as Map<String, dynamic>).toList());
  840. } else {
  841. return jsonConvert.convert<M>(json);
  842. }
  843. }
  844. }
  845. class JsonConvertClassCollection {
  846. Map<String, JsonConvertFunction> convertFuncMap = {
  847. (AddEditReviseViewSGEntity).toString(): AddEditReviseViewSGEntity.fromJson,
  848. (AgencyDetailEntity).toString(): AgencyDetailEntity.fromJson,
  849. (AgencyDetailPivot).toString(): AgencyDetailPivot.fromJson,
  850. (AgencyOptionEntity).toString(): AgencyOptionEntity.fromJson,
  851. (AgencyTableEntity).toString(): AgencyTableEntity.fromJson,
  852. (AgencyTableRows).toString(): AgencyTableRows.fromJson,
  853. (AttendanceEntity).toString(): AttendanceEntity.fromJson,
  854. (AttendanceList).toString(): AttendanceList.fromJson,
  855. (AttendanceReviewEntity).toString(): AttendanceReviewEntity.fromJson,
  856. (AttendanceReviewRows).toString(): AttendanceReviewRows.fromJson,
  857. (CheckSuccessEntity).toString(): CheckSuccessEntity.fromJson,
  858. (ContractDetailEntity).toString(): ContractDetailEntity.fromJson,
  859. (ContractDetailRow).toString(): ContractDetailRow.fromJson,
  860. (ContractOptionEntity).toString(): ContractOptionEntity.fromJson,
  861. (ContractPositionAddOptionEntity).toString(): ContractPositionAddOptionEntity.fromJson,
  862. (ContractPositionOptionEntity).toString(): ContractPositionOptionEntity.fromJson,
  863. (ContractPositionRateDetailEntity).toString(): ContractPositionRateDetailEntity.fromJson,
  864. (ContractPositionRateSpecificOptionEntity).toString(): ContractPositionRateSpecificOptionEntity.fromJson,
  865. (ContractPositionRateTableEntity).toString(): ContractPositionRateTableEntity.fromJson,
  866. (ContractPositionRateTableRows).toString(): ContractPositionRateTableRows.fromJson,
  867. (ContractPositionTableEntity).toString(): ContractPositionTableEntity.fromJson,
  868. (ContractPositionTableRows).toString(): ContractPositionTableRows.fromJson,
  869. (ContractTableEntity).toString(): ContractTableEntity.fromJson,
  870. (ContractTableRows).toString(): ContractTableRows.fromJson,
  871. (DeviceListEntity).toString(): DeviceListEntity.fromJson,
  872. (DeviceListRows).toString(): DeviceListRows.fromJson,
  873. (FianceReportEntity).toString(): FianceReportEntity.fromJson,
  874. (FianceReportRateList).toString(): FianceReportRateList.fromJson,
  875. (HotelInfoEntity).toString(): HotelInfoEntity.fromJson,
  876. (HotelInfoMenus).toString(): HotelInfoMenus.fromJson,
  877. (HotelInfoMenusChildren).toString(): HotelInfoMenusChildren.fromJson,
  878. (IdNameEntity).toString(): IdNameEntity.fromJson,
  879. (IndexOptionEntity).toString(): IndexOptionEntity.fromJson,
  880. (JobAppliedEditIndexSGEntity).toString(): JobAppliedEditIndexSGEntity.fromJson,
  881. (JobAppliedEditIndexSGStatusList).toString(): JobAppliedEditIndexSGStatusList.fromJson,
  882. (JobAppliedIndexSGEntity).toString(): JobAppliedIndexSGEntity.fromJson,
  883. (JobAppliedIndexSGStatusList).toString(): JobAppliedIndexSGStatusList.fromJson,
  884. (JobAppliedListSGEntity).toString(): JobAppliedListSGEntity.fromJson,
  885. (JobAppliedListSGRows).toString(): JobAppliedListSGRows.fromJson,
  886. (JobAppliedListSGRowsCheck).toString(): JobAppliedListSGRowsCheck.fromJson,
  887. (JobAppliedListSGRowsStatusList).toString(): JobAppliedListSGRowsStatusList.fromJson,
  888. (JobAppliedRemarkViewSGEntity).toString(): JobAppliedRemarkViewSGEntity.fromJson,
  889. (JobAppliedStaffSGEntity).toString(): JobAppliedStaffSGEntity.fromJson,
  890. (JobAppliedStaffSGRows).toString(): JobAppliedStaffSGRows.fromJson,
  891. (JobListAddStaffEntity).toString(): JobListAddStaffEntity.fromJson,
  892. (JobListAddStaffResultList).toString(): JobListAddStaffResultList.fromJson,
  893. (JobListAppliedEditEntity).toString(): JobListAppliedEditEntity.fromJson,
  894. (JobListAppliedEditReasonList).toString(): JobListAppliedEditReasonList.fromJson,
  895. (JobListAppliedInfoEntity).toString(): JobListAppliedInfoEntity.fromJson,
  896. (JobListAppliedStaffListEntity).toString(): JobListAppliedStaffListEntity.fromJson,
  897. (JobListAppliedStaffListRows).toString(): JobListAppliedStaffListRows.fromJson,
  898. (JobListAppliedStaffListRowsSecurityIn).toString(): JobListAppliedStaffListRowsSecurityIn.fromJson,
  899. (JobListAppliedStaffListRowsSecurityOut).toString(): JobListAppliedStaffListRowsSecurityOut.fromJson,
  900. (JobListAppliedStaffListRowsWorkIn).toString(): JobListAppliedStaffListRowsWorkIn.fromJson,
  901. (JobListAppliedStaffListRowsWorkOut).toString(): JobListAppliedStaffListRowsWorkOut.fromJson,
  902. (JobListAppliedStaffSearchEntity).toString(): JobListAppliedStaffSearchEntity.fromJson,
  903. (JobListAppliedStaffSearchRows).toString(): JobListAppliedStaffSearchRows.fromJson,
  904. (JobListAppliedWorkFlowEntity).toString(): JobListAppliedWorkFlowEntity.fromJson,
  905. (JobListAppliedWorkFlowRecords).toString(): JobListAppliedWorkFlowRecords.fromJson,
  906. (JobListDetailEntity).toString(): JobListDetailEntity.fromJson,
  907. (JobListDetailDepartmentList).toString(): JobListDetailDepartmentList.fromJson,
  908. (JobListERDetailEntity).toString(): JobListERDetailEntity.fromJson,
  909. (JobListERDetailJob).toString(): JobListERDetailJob.fromJson,
  910. (JobListEROptionEntity).toString(): JobListEROptionEntity.fromJson,
  911. (JobListEROptionFilter).toString(): JobListEROptionFilter.fromJson,
  912. (JobListEditIndexSGEntity).toString(): JobListEditIndexSGEntity.fromJson,
  913. (JobListEditIndexOption).toString(): JobListEditIndexOption.fromJson,
  914. (JobListEntity).toString(): JobListEntity.fromJson,
  915. (JobListRows).toString(): JobListRows.fromJson,
  916. (JobListIndexEntity).toString(): JobListIndexEntity.fromJson,
  917. (JobListIndexDepartmentList).toString(): JobListIndexDepartmentList.fromJson,
  918. (JobListIndexStatusList).toString(): JobListIndexStatusList.fromJson,
  919. (JobListIndexSGEntity).toString(): JobListIndexSGEntity.fromJson,
  920. (JobListIndexSGOption).toString(): JobListIndexSGOption.fromJson,
  921. (JobListRemarkViewEntity).toString(): JobListRemarkViewEntity.fromJson,
  922. (JobListSGEntity).toString(): JobListSGEntity.fromJson,
  923. (JobListSGRows).toString(): JobListSGRows.fromJson,
  924. (JobTemplateEditIndexEntity).toString(): JobTemplateEditIndexEntity.fromJson,
  925. (JobTemplateEditIndexAgeList).toString(): JobTemplateEditIndexAgeList.fromJson,
  926. (JobTemplateEditIndexSexList).toString(): JobTemplateEditIndexSexList.fromJson,
  927. (JobTemplateEditIndexLanguageList).toString(): JobTemplateEditIndexLanguageList.fromJson,
  928. (JobTemplateSGEntity).toString(): JobTemplateSGEntity.fromJson,
  929. (JobTemplateSGRows).toString(): JobTemplateSGRows.fromJson,
  930. (JobTitleEditIndexEntity).toString(): JobTitleEditIndexEntity.fromJson,
  931. (JobTitleEditIndexTemplate).toString(): JobTitleEditIndexTemplate.fromJson,
  932. (JobTitleSGEntity).toString(): JobTitleSGEntity.fromJson,
  933. (JobTitleSGRows).toString(): JobTitleSGRows.fromJson,
  934. (LabourListEREntity).toString(): LabourListEREntity.fromJson,
  935. (LabourListERRows).toString(): LabourListERRows.fromJson,
  936. (LabourReportEntity).toString(): LabourReportEntity.fromJson,
  937. (LabourReportRows).toString(): LabourReportRows.fromJson,
  938. (LabourReportTotal).toString(): LabourReportTotal.fromJson,
  939. (LabourReportVNEntity).toString(): LabourReportVNEntity.fromJson,
  940. (LabourReportVNRows).toString(): LabourReportVNRows.fromJson,
  941. (LabourReportVNTotal).toString(): LabourReportVNTotal.fromJson,
  942. (LabourRequestEREntity).toString(): LabourRequestEREntity.fromJson,
  943. (LabourRequestERCountList).toString(): LabourRequestERCountList.fromJson,
  944. (LabourRequestERSourceList).toString(): LabourRequestERSourceList.fromJson,
  945. (LabourRequestERSourceListRequestList).toString(): LabourRequestERSourceListRequestList.fromJson,
  946. (LabourRequestEROptionEntity).toString(): LabourRequestEROptionEntity.fromJson,
  947. (LabourRequestEditIndexEntity).toString(): LabourRequestEditIndexEntity.fromJson,
  948. (LabourRequestEditIndexTemplateList).toString(): LabourRequestEditIndexTemplateList.fromJson,
  949. (LabourRequestEditIndexDepartmentList).toString(): LabourRequestEditIndexDepartmentList.fromJson,
  950. (LabourRequestIndexEntity).toString(): LabourRequestIndexEntity.fromJson,
  951. (LabourRequestIndexDepartmentList).toString(): LabourRequestIndexDepartmentList.fromJson,
  952. (LabourRequestIndexStatusList).toString(): LabourRequestIndexStatusList.fromJson,
  953. (LabourRequestListEntity).toString(): LabourRequestListEntity.fromJson,
  954. (LabourRequestListRows).toString(): LabourRequestListRows.fromJson,
  955. (LabourRequestWorkFlowEntity).toString(): LabourRequestWorkFlowEntity.fromJson,
  956. (LabourRequestWorkFlowRecords).toString(): LabourRequestWorkFlowRecords.fromJson,
  957. (LabourReviewListEntity).toString(): LabourReviewListEntity.fromJson,
  958. (LabourReviewListRows).toString(): LabourReviewListRows.fromJson,
  959. (LabourReviewStatusEntity).toString(): LabourReviewStatusEntity.fromJson,
  960. (LabourReviewStatusRecords).toString(): LabourReviewStatusRecords.fromJson,
  961. (PositionTableEntity).toString(): PositionTableEntity.fromJson,
  962. (PositionTableRows).toString(): PositionTableRows.fromJson,
  963. (ReviseIndexSGEntity).toString(): ReviseIndexSGEntity.fromJson,
  964. (ReviseIndexSGStatusList).toString(): ReviseIndexSGStatusList.fromJson,
  965. (ReviseListSGEntity).toString(): ReviseListSGEntity.fromJson,
  966. (ReviseListSGRows).toString(): ReviseListSGRows.fromJson,
  967. (ReviseLogSGEntity).toString(): ReviseLogSGEntity.fromJson,
  968. (ReviseLogSGRecords).toString(): ReviseLogSGRecords.fromJson,
  969. (ReviseLogSGRecordsContent).toString(): ReviseLogSGRecordsContent.fromJson,
  970. (ReviseLogSGRecordsOption).toString(): ReviseLogSGRecordsOption.fromJson,
  971. (SGAttendanceReviewOptionEntity).toString(): SGAttendanceReviewOptionEntity.fromJson,
  972. (SGAttendanceReviewTableEntity).toString(): SGAttendanceReviewTableEntity.fromJson,
  973. (SGAttendanceReviewTableRows).toString(): SGAttendanceReviewTableRows.fromJson,
  974. (SGAttendanceReviewTableRowsCheck).toString(): SGAttendanceReviewTableRowsCheck.fromJson,
  975. (SGAttendanceReviewWorkflowEntity).toString(): SGAttendanceReviewWorkflowEntity.fromJson,
  976. (SGAttendanceReviewWorkflowRow).toString(): SGAttendanceReviewWorkflowRow.fromJson,
  977. (SGAttendanceReviewWorkflowRecords).toString(): SGAttendanceReviewWorkflowRecords.fromJson,
  978. (SGDashboardEntity).toString(): SGDashboardEntity.fromJson,
  979. (SGDashboardAgencyList).toString(): SGDashboardAgencyList.fromJson,
  980. (SGDashboardAgencyListDays).toString(): SGDashboardAgencyListDays.fromJson,
  981. (SGLabourRequestAddOptionEntity).toString(): SGLabourRequestAddOptionEntity.fromJson,
  982. (LabourRequestAgencyEntity).toString(): LabourRequestAgencyEntity.fromJson,
  983. (SGLabourRequestDetailEntity).toString(): SGLabourRequestDetailEntity.fromJson,
  984. (SGLabourRequestDetailLabReq).toString(): SGLabourRequestDetailLabReq.fromJson,
  985. (SGLabourRequestOptionEntity).toString(): SGLabourRequestOptionEntity.fromJson,
  986. (SGLabourRequestTableEntity).toString(): SGLabourRequestTableEntity.fromJson,
  987. (SGLabourRequestTableRows).toString(): SGLabourRequestTableRows.fromJson,
  988. (SGLabourRequestWorlFlowEntity).toString(): SGLabourRequestWorlFlowEntity.fromJson,
  989. (SGLabourRequestWorlFlowRow).toString(): SGLabourRequestWorlFlowRow.fromJson,
  990. (SGLabourRequestWorlFlowRecords).toString(): SGLabourRequestWorlFlowRecords.fromJson,
  991. (SGLabourReviewOptionEntity).toString(): SGLabourReviewOptionEntity.fromJson,
  992. (SGLabourReviewTableEntity).toString(): SGLabourReviewTableEntity.fromJson,
  993. (SGLabourReviewTableRows).toString(): SGLabourReviewTableRows.fromJson,
  994. (SignInSignOutEntity).toString(): SignInSignOutEntity.fromJson,
  995. (SignInSignOutRows).toString(): SignInSignOutRows.fromJson,
  996. (StaffDetailEntity).toString(): StaffDetailEntity.fromJson,
  997. (StaffDetailSGEntity).toString(): StaffDetailSGEntity.fromJson,
  998. (StaffDetailSGReviews).toString(): StaffDetailSGReviews.fromJson,
  999. (StaffDetailSGReviewsReviews).toString(): StaffDetailSGReviewsReviews.fromJson,
  1000. (StaffJobHistorySGEntity).toString(): StaffJobHistorySGEntity.fromJson,
  1001. (StaffJobHistorySGRows).toString(): StaffJobHistorySGRows.fromJson,
  1002. (StaffLabourHistoryEntity).toString(): StaffLabourHistoryEntity.fromJson,
  1003. (StaffLabourHistoryRows).toString(): StaffLabourHistoryRows.fromJson,
  1004. (StaffLabourHistoryRowsSecurityIn).toString(): StaffLabourHistoryRowsSecurityIn.fromJson,
  1005. (StaffLabourHistoryRowsSecurityOut).toString(): StaffLabourHistoryRowsSecurityOut.fromJson,
  1006. (StaffLabourHistoryRowsWorkIn).toString(): StaffLabourHistoryRowsWorkIn.fromJson,
  1007. (StaffLabourHistoryRowsWorkOut).toString(): StaffLabourHistoryRowsWorkOut.fromJson,
  1008. (StaffRemarkHistoryEntity).toString(): StaffRemarkHistoryEntity.fromJson,
  1009. (StaffRemarkHistoryRows).toString(): StaffRemarkHistoryRows.fromJson,
  1010. (StaffReportVNEntity).toString(): StaffReportVNEntity.fromJson,
  1011. (StaffRequestReportEntity).toString(): StaffRequestReportEntity.fromJson,
  1012. (StaffReviewHistorySGEntity).toString(): StaffReviewHistorySGEntity.fromJson,
  1013. (StaffReviewHistorySGReviews).toString(): StaffReviewHistorySGReviews.fromJson,
  1014. (SwitchProjectEntity).toString(): SwitchProjectEntity.fromJson,
  1015. (SwitchProjectUserList).toString(): SwitchProjectUserList.fromJson,
  1016. (THAppliedEditEntity).toString(): THAppliedEditEntity.fromJson,
  1017. (THAppliedEditApplied).toString(): THAppliedEditApplied.fromJson,
  1018. (THAppliedEmployeeEntity).toString(): THAppliedEmployeeEntity.fromJson,
  1019. (THAppliedEmployeeRows).toString(): THAppliedEmployeeRows.fromJson,
  1020. (THAppliedIndexEntity).toString(): THAppliedIndexEntity.fromJson,
  1021. (THAppliedIndexJob).toString(): THAppliedIndexJob.fromJson,
  1022. (THAppliedTableEntity).toString(): THAppliedTableEntity.fromJson,
  1023. (THAppliedTableRows).toString(): THAppliedTableRows.fromJson,
  1024. (THAppliedTableCheckInOut).toString(): THAppliedTableCheckInOut.fromJson,
  1025. (THEmployeeDetailEntity).toString(): THEmployeeDetailEntity.fromJson,
  1026. (THEmployeeDetailStaff).toString(): THEmployeeDetailStaff.fromJson,
  1027. (THEmployeeDetailReviews).toString(): THEmployeeDetailReviews.fromJson,
  1028. (THEmployeeRemarksEntity).toString(): THEmployeeRemarksEntity.fromJson,
  1029. (THEmployeeRemarksReviews).toString(): THEmployeeRemarksReviews.fromJson,
  1030. (UKAttendanceEntity).toString(): UKAttendanceEntity.fromJson,
  1031. (UKAttendanceRows).toString(): UKAttendanceRows.fromJson,
  1032. (UKAttendanceInOut).toString(): UKAttendanceInOut.fromJson,
  1033. (UKReportAttendanceEntity).toString(): UKReportAttendanceEntity.fromJson,
  1034. (UKReportAttendanceRows).toString(): UKReportAttendanceRows.fromJson,
  1035. (UKReportLabourEntity).toString(): UKReportLabourEntity.fromJson,
  1036. (UKReportLabourRows).toString(): UKReportLabourRows.fromJson,
  1037. (UKReportWorkingHoursEntity).toString(): UKReportWorkingHoursEntity.fromJson,
  1038. (UKReportWorkingHoursRows).toString(): UKReportWorkingHoursRows.fromJson,
  1039. (UKSecurityAttendanceEntity).toString(): UKSecurityAttendanceEntity.fromJson,
  1040. (UKSecurityAttendanceRows).toString(): UKSecurityAttendanceRows.fromJson,
  1041. (UKSecurityInOut).toString(): UKSecurityInOut.fromJson,
  1042. (UKSecurityAttendanceOptionEntity).toString(): UKSecurityAttendanceOptionEntity.fromJson,
  1043. (UKSecurityAttendanceOptionFilter).toString(): UKSecurityAttendanceOptionFilter.fromJson,
  1044. (UKTemplateDetailEntity).toString(): UKTemplateDetailEntity.fromJson,
  1045. (UKTemplateDetailRow).toString(): UKTemplateDetailRow.fromJson,
  1046. (UKTemplateEntity).toString(): UKTemplateEntity.fromJson,
  1047. (UKTemplateRows).toString(): UKTemplateRows.fromJson,
  1048. (ServerTime).toString(): ServerTime.fromJson,
  1049. };
  1050. bool containsKey(String type) {
  1051. return convertFuncMap.containsKey(type);
  1052. }
  1053. JsonConvertFunction? operator [](String key) {
  1054. return convertFuncMap[key];
  1055. }
  1056. }