json_convert_content.dart 90 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882
  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/t_h_o_a_attachment_entity.dart';
  94. import 'package:domain/entity/response/t_h_o_a_labour_detail_entity.dart';
  95. import 'package:domain/entity/response/t_h_o_a_labour_review_table_entity.dart';
  96. import 'package:domain/entity/response/t_h_o_a_labour_table_entity.dart';
  97. import 'package:domain/entity/response/t_h_upload_file_entity.dart';
  98. import 'package:domain/entity/response/u_k_attendance_entity.dart';
  99. import 'package:domain/entity/response/u_k_report_attendance_entity.dart';
  100. import 'package:domain/entity/response/u_k_report_labour_entity.dart';
  101. import 'package:domain/entity/response/u_k_report_working_hours_entity.dart';
  102. import 'package:domain/entity/response/u_k_security_attendance_entity.dart';
  103. import 'package:domain/entity/response/u_k_security_attendance_option_entity.dart';
  104. import 'package:domain/entity/response/u_k_template_entity.dart';
  105. import 'package:domain/entity/response/uk_attendance_review_entity.dart';
  106. import 'package:domain/entity/response/uk_attendance_review_remark_entity.dart';
  107. import 'package:domain/entity/response/uk_job_applied_revise_add_detail_entity.dart';
  108. import 'package:domain/entity/response/uk_job_applied_revise_edit_detail_entity.dart';
  109. import 'package:domain/entity/response/uk_job_applied_revise_info_entity.dart';
  110. import 'package:domain/entity/response/uk_job_applied_revise_log_entity.dart';
  111. import 'package:domain/entity/response/uk_job_applied_staff_list_entity.dart';
  112. import 'package:domain/entity/response/uk_job_template_detail_by_select_title_entity.dart';
  113. import 'package:domain/entity/response/uk_labour_request_detail_entity.dart';
  114. import 'package:domain/entity/response/uk_labour_request_preselect_addstatff_list_entity.dart';
  115. import 'package:domain/entity/response/uk_labour_request_preselected_list_entity.dart';
  116. import 'package:domain/entity/response/uk_labour_request_review_detail_entity.dart';
  117. import 'package:domain/entity/response/uk_labour_request_review_list_entity.dart';
  118. import 'package:domain/entity/response/uk_labour_request_table_entity.dart';
  119. import 'package:domain/entity/response/uk_labour_review_status_entity.dart';
  120. import 'package:domain/entity/response/uk_report_casual_entity.dart';
  121. import 'package:domain/entity/response/uk_report_casual_pay_entity.dart';
  122. import 'package:domain/entity/response/uk_report_outlet_entity.dart';
  123. import 'package:domain/entity/response/uk_staff_detail_entity.dart';
  124. import 'package:domain/entity/response/uk_staff_labour_history_entity.dart';
  125. import 'package:domain/entity/response/uk_template_detail_entity.dart';
  126. import 'package:domain/entity/response/uk_template_detail_index_entity.dart';
  127. import 'package:domain/entity/response/uk_template_title_option_entity.dart';
  128. import 'package:domain/entity/server_time.dart';
  129. JsonConvert jsonConvert = JsonConvert();
  130. typedef JsonConvertFunction<T> = T Function(Map<String, dynamic> json);
  131. typedef EnumConvertFunction<T> = T Function(String value);
  132. typedef ConvertExceptionHandler = void Function(Object error, StackTrace stackTrace);
  133. extension MapSafeExt<K, V> on Map<K, V> {
  134. T? getOrNull<T>(K? key) {
  135. if (!containsKey(key) || key == null) {
  136. return null;
  137. } else {
  138. return this[key] as T?;
  139. }
  140. }
  141. }
  142. class JsonConvert {
  143. static ConvertExceptionHandler? onError;
  144. JsonConvertClassCollection convertFuncMap = JsonConvertClassCollection();
  145. /// 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
  146. /// https://flutter.cn/docs/development/tools/hot-reload
  147. /// class MyApp extends StatelessWidget {
  148. /// const MyApp({Key? key})
  149. /// : super(key: key);
  150. ///
  151. /// @override
  152. /// Widget build(BuildContext context) {
  153. /// jsonConvert.reassembleConvertFuncMap();
  154. /// return MaterialApp();
  155. /// }
  156. /// }
  157. void reassembleConvertFuncMap() {
  158. bool isReleaseMode = const bool.fromEnvironment('dart.vm.product');
  159. if (!isReleaseMode) {
  160. convertFuncMap = JsonConvertClassCollection();
  161. }
  162. }
  163. T? convert<T>(dynamic value, {EnumConvertFunction? enumConvert}) {
  164. if (value == null) {
  165. return null;
  166. }
  167. if (value is T) {
  168. return value;
  169. }
  170. try {
  171. return _asT<T>(value, enumConvert: enumConvert);
  172. } catch (e, stackTrace) {
  173. debugPrint('asT<$T> $e $stackTrace');
  174. if (onError != null) {
  175. onError!(e, stackTrace);
  176. }
  177. return null;
  178. }
  179. }
  180. List<T?>? convertList<T>(List<dynamic>? value,
  181. {EnumConvertFunction? enumConvert}) {
  182. if (value == null) {
  183. return null;
  184. }
  185. try {
  186. return value.map((dynamic e) => _asT<T>(e, enumConvert: enumConvert))
  187. .toList();
  188. } catch (e, stackTrace) {
  189. debugPrint('asT<$T> $e $stackTrace');
  190. if (onError != null) {
  191. onError!(e, stackTrace);
  192. }
  193. return <T>[];
  194. }
  195. }
  196. List<T>? convertListNotNull<T>(dynamic value,
  197. {EnumConvertFunction? enumConvert}) {
  198. if (value == null) {
  199. return null;
  200. }
  201. try {
  202. return (value as List<dynamic>).map((dynamic e) =>
  203. _asT<T>(e, enumConvert: enumConvert)!).toList();
  204. } catch (e, stackTrace) {
  205. debugPrint('asT<$T> $e $stackTrace');
  206. if (onError != null) {
  207. onError!(e, stackTrace);
  208. }
  209. return <T>[];
  210. }
  211. }
  212. T? _asT<T extends Object?>(dynamic value,
  213. {EnumConvertFunction? enumConvert}) {
  214. final String type = T.toString();
  215. final String valueS = value.toString();
  216. if (enumConvert != null) {
  217. return enumConvert(valueS) as T;
  218. } else if (type == "String") {
  219. return valueS as T;
  220. } else if (type == "int") {
  221. final int? intValue = int.tryParse(valueS);
  222. if (intValue == null) {
  223. return double.tryParse(valueS)?.toInt() as T?;
  224. } else {
  225. return intValue as T;
  226. }
  227. } else if (type == "double") {
  228. return double.parse(valueS) as T;
  229. } else if (type == "DateTime") {
  230. return DateTime.parse(valueS) as T;
  231. } else if (type == "bool") {
  232. if (valueS == '0' || valueS == '1') {
  233. return (valueS == '1') as T;
  234. }
  235. return (valueS == 'true') as T;
  236. } else if (type == "Map" || type.startsWith("Map<")) {
  237. return value as T;
  238. } else {
  239. if (convertFuncMap.containsKey(type)) {
  240. if (value == null) {
  241. return null;
  242. }
  243. var covertFunc = convertFuncMap[type]!;
  244. if (covertFunc is Map<String, dynamic>) {
  245. return covertFunc(value as Map<String, dynamic>) as T;
  246. } else {
  247. return covertFunc(Map<String, dynamic>.from(value)) as T;
  248. }
  249. } else {
  250. throw UnimplementedError(
  251. '$type unimplemented,you can try running the app again');
  252. }
  253. }
  254. }
  255. //list is returned by type
  256. static M? _getListChildType<M>(List<Map<String, dynamic>> data) {
  257. if (<AddEditReviseViewSGEntity>[] is M) {
  258. return data.map<AddEditReviseViewSGEntity>((Map<String, dynamic> e) =>
  259. AddEditReviseViewSGEntity.fromJson(e)).toList() as M;
  260. }
  261. if (<AgencyDetailEntity>[] is M) {
  262. return data.map<AgencyDetailEntity>((Map<String, dynamic> e) =>
  263. AgencyDetailEntity.fromJson(e)).toList() as M;
  264. }
  265. if (<AgencyDetailPivot>[] is M) {
  266. return data.map<AgencyDetailPivot>((Map<String, dynamic> e) =>
  267. AgencyDetailPivot.fromJson(e)).toList() as M;
  268. }
  269. if (<AgencyOptionEntity>[] is M) {
  270. return data.map<AgencyOptionEntity>((Map<String, dynamic> e) =>
  271. AgencyOptionEntity.fromJson(e)).toList() as M;
  272. }
  273. if (<AgencyTableEntity>[] is M) {
  274. return data.map<AgencyTableEntity>((Map<String, dynamic> e) =>
  275. AgencyTableEntity.fromJson(e)).toList() as M;
  276. }
  277. if (<AgencyTableRows>[] is M) {
  278. return data.map<AgencyTableRows>((Map<String, dynamic> e) =>
  279. AgencyTableRows.fromJson(e)).toList() as M;
  280. }
  281. if (<AttendanceEntity>[] is M) {
  282. return data.map<AttendanceEntity>((Map<String, dynamic> e) =>
  283. AttendanceEntity.fromJson(e)).toList() as M;
  284. }
  285. if (<AttendanceList>[] is M) {
  286. return data.map<AttendanceList>((Map<String, dynamic> e) =>
  287. AttendanceList.fromJson(e)).toList() as M;
  288. }
  289. if (<AttendanceReviewEntity>[] is M) {
  290. return data.map<AttendanceReviewEntity>((Map<String, dynamic> e) =>
  291. AttendanceReviewEntity.fromJson(e)).toList() as M;
  292. }
  293. if (<AttendanceReviewRows>[] is M) {
  294. return data.map<AttendanceReviewRows>((Map<String, dynamic> e) =>
  295. AttendanceReviewRows.fromJson(e)).toList() as M;
  296. }
  297. if (<CheckSuccessEntity>[] is M) {
  298. return data.map<CheckSuccessEntity>((Map<String, dynamic> e) =>
  299. CheckSuccessEntity.fromJson(e)).toList() as M;
  300. }
  301. if (<ContractDetailEntity>[] is M) {
  302. return data.map<ContractDetailEntity>((Map<String, dynamic> e) =>
  303. ContractDetailEntity.fromJson(e)).toList() as M;
  304. }
  305. if (<ContractDetailRow>[] is M) {
  306. return data.map<ContractDetailRow>((Map<String, dynamic> e) =>
  307. ContractDetailRow.fromJson(e)).toList() as M;
  308. }
  309. if (<ContractOptionEntity>[] is M) {
  310. return data.map<ContractOptionEntity>((Map<String, dynamic> e) =>
  311. ContractOptionEntity.fromJson(e)).toList() as M;
  312. }
  313. if (<ContractPositionAddOptionEntity>[] is M) {
  314. return data.map<ContractPositionAddOptionEntity>((
  315. Map<String, dynamic> e) =>
  316. ContractPositionAddOptionEntity.fromJson(e)).toList() as M;
  317. }
  318. if (<ContractPositionOptionEntity>[] is M) {
  319. return data.map<ContractPositionOptionEntity>((Map<String, dynamic> e) =>
  320. ContractPositionOptionEntity.fromJson(e)).toList() as M;
  321. }
  322. if (<ContractPositionRateDetailEntity>[] is M) {
  323. return data.map<ContractPositionRateDetailEntity>((
  324. Map<String, dynamic> e) =>
  325. ContractPositionRateDetailEntity.fromJson(e)).toList() as M;
  326. }
  327. if (<ContractPositionRateSpecificOptionEntity>[] is M) {
  328. return data.map<ContractPositionRateSpecificOptionEntity>((
  329. Map<String, dynamic> e) =>
  330. ContractPositionRateSpecificOptionEntity.fromJson(e)).toList() as M;
  331. }
  332. if (<ContractPositionRateTableEntity>[] is M) {
  333. return data.map<ContractPositionRateTableEntity>((
  334. Map<String, dynamic> e) =>
  335. ContractPositionRateTableEntity.fromJson(e)).toList() as M;
  336. }
  337. if (<ContractPositionRateTableRows>[] is M) {
  338. return data.map<ContractPositionRateTableRows>((Map<String, dynamic> e) =>
  339. ContractPositionRateTableRows.fromJson(e)).toList() as M;
  340. }
  341. if (<ContractPositionTableEntity>[] is M) {
  342. return data.map<ContractPositionTableEntity>((Map<String, dynamic> e) =>
  343. ContractPositionTableEntity.fromJson(e)).toList() as M;
  344. }
  345. if (<ContractPositionTableRows>[] is M) {
  346. return data.map<ContractPositionTableRows>((Map<String, dynamic> e) =>
  347. ContractPositionTableRows.fromJson(e)).toList() as M;
  348. }
  349. if (<ContractTableEntity>[] is M) {
  350. return data.map<ContractTableEntity>((Map<String, dynamic> e) =>
  351. ContractTableEntity.fromJson(e)).toList() as M;
  352. }
  353. if (<ContractTableRows>[] is M) {
  354. return data.map<ContractTableRows>((Map<String, dynamic> e) =>
  355. ContractTableRows.fromJson(e)).toList() as M;
  356. }
  357. if (<DeviceListEntity>[] is M) {
  358. return data.map<DeviceListEntity>((Map<String, dynamic> e) =>
  359. DeviceListEntity.fromJson(e)).toList() as M;
  360. }
  361. if (<DeviceListRows>[] is M) {
  362. return data.map<DeviceListRows>((Map<String, dynamic> e) =>
  363. DeviceListRows.fromJson(e)).toList() as M;
  364. }
  365. if (<FianceReportEntity>[] is M) {
  366. return data.map<FianceReportEntity>((Map<String, dynamic> e) =>
  367. FianceReportEntity.fromJson(e)).toList() as M;
  368. }
  369. if (<FianceReportRateList>[] is M) {
  370. return data.map<FianceReportRateList>((Map<String, dynamic> e) =>
  371. FianceReportRateList.fromJson(e)).toList() as M;
  372. }
  373. if (<HotelInfoEntity>[] is M) {
  374. return data.map<HotelInfoEntity>((Map<String, dynamic> e) =>
  375. HotelInfoEntity.fromJson(e)).toList() as M;
  376. }
  377. if (<HotelInfoMenus>[] is M) {
  378. return data.map<HotelInfoMenus>((Map<String, dynamic> e) =>
  379. HotelInfoMenus.fromJson(e)).toList() as M;
  380. }
  381. if (<HotelInfoMenusChildren>[] is M) {
  382. return data.map<HotelInfoMenusChildren>((Map<String, dynamic> e) =>
  383. HotelInfoMenusChildren.fromJson(e)).toList() as M;
  384. }
  385. if (<IdNameEntity>[] is M) {
  386. return data.map<IdNameEntity>((Map<String, dynamic> e) =>
  387. IdNameEntity.fromJson(e)).toList() as M;
  388. }
  389. if (<IndexOptionEntity>[] is M) {
  390. return data.map<IndexOptionEntity>((Map<String, dynamic> e) =>
  391. IndexOptionEntity.fromJson(e)).toList() as M;
  392. }
  393. if (<JobAppliedEditIndexSGEntity>[] is M) {
  394. return data.map<JobAppliedEditIndexSGEntity>((Map<String, dynamic> e) =>
  395. JobAppliedEditIndexSGEntity.fromJson(e)).toList() as M;
  396. }
  397. if (<JobAppliedEditIndexSGStatusList>[] is M) {
  398. return data.map<JobAppliedEditIndexSGStatusList>((
  399. Map<String, dynamic> e) =>
  400. JobAppliedEditIndexSGStatusList.fromJson(e)).toList() as M;
  401. }
  402. if (<JobAppliedIndexSGEntity>[] is M) {
  403. return data.map<JobAppliedIndexSGEntity>((Map<String, dynamic> e) =>
  404. JobAppliedIndexSGEntity.fromJson(e)).toList() as M;
  405. }
  406. if (<JobAppliedIndexSGStatusList>[] is M) {
  407. return data.map<JobAppliedIndexSGStatusList>((Map<String, dynamic> e) =>
  408. JobAppliedIndexSGStatusList.fromJson(e)).toList() as M;
  409. }
  410. if (<JobAppliedListSGEntity>[] is M) {
  411. return data.map<JobAppliedListSGEntity>((Map<String, dynamic> e) =>
  412. JobAppliedListSGEntity.fromJson(e)).toList() as M;
  413. }
  414. if (<JobAppliedListSGRows>[] is M) {
  415. return data.map<JobAppliedListSGRows>((Map<String, dynamic> e) =>
  416. JobAppliedListSGRows.fromJson(e)).toList() as M;
  417. }
  418. if (<JobAppliedListSGRowsCheck>[] is M) {
  419. return data.map<JobAppliedListSGRowsCheck>((Map<String, dynamic> e) =>
  420. JobAppliedListSGRowsCheck.fromJson(e)).toList() as M;
  421. }
  422. if (<JobAppliedListSGRowsStatusList>[] is M) {
  423. return data.map<JobAppliedListSGRowsStatusList>((
  424. Map<String, dynamic> e) => JobAppliedListSGRowsStatusList.fromJson(e))
  425. .toList() as M;
  426. }
  427. if (<JobAppliedRemarkViewSGEntity>[] is M) {
  428. return data.map<JobAppliedRemarkViewSGEntity>((Map<String, dynamic> e) =>
  429. JobAppliedRemarkViewSGEntity.fromJson(e)).toList() as M;
  430. }
  431. if (<JobAppliedStaffSGEntity>[] is M) {
  432. return data.map<JobAppliedStaffSGEntity>((Map<String, dynamic> e) =>
  433. JobAppliedStaffSGEntity.fromJson(e)).toList() as M;
  434. }
  435. if (<JobAppliedStaffSGRows>[] is M) {
  436. return data.map<JobAppliedStaffSGRows>((Map<String, dynamic> e) =>
  437. JobAppliedStaffSGRows.fromJson(e)).toList() as M;
  438. }
  439. if (<JobListAddStaffEntity>[] is M) {
  440. return data.map<JobListAddStaffEntity>((Map<String, dynamic> e) =>
  441. JobListAddStaffEntity.fromJson(e)).toList() as M;
  442. }
  443. if (<JobListAddStaffResultList>[] is M) {
  444. return data.map<JobListAddStaffResultList>((Map<String, dynamic> e) =>
  445. JobListAddStaffResultList.fromJson(e)).toList() as M;
  446. }
  447. if (<JobListAppliedEditEntity>[] is M) {
  448. return data.map<JobListAppliedEditEntity>((Map<String, dynamic> e) =>
  449. JobListAppliedEditEntity.fromJson(e)).toList() as M;
  450. }
  451. if (<JobListAppliedEditReasonList>[] is M) {
  452. return data.map<JobListAppliedEditReasonList>((Map<String, dynamic> e) =>
  453. JobListAppliedEditReasonList.fromJson(e)).toList() as M;
  454. }
  455. if (<JobListAppliedInfoEntity>[] is M) {
  456. return data.map<JobListAppliedInfoEntity>((Map<String, dynamic> e) =>
  457. JobListAppliedInfoEntity.fromJson(e)).toList() as M;
  458. }
  459. if (<JobListAppliedStaffListEntity>[] is M) {
  460. return data.map<JobListAppliedStaffListEntity>((Map<String, dynamic> e) =>
  461. JobListAppliedStaffListEntity.fromJson(e)).toList() as M;
  462. }
  463. if (<JobListAppliedStaffListRows>[] is M) {
  464. return data.map<JobListAppliedStaffListRows>((Map<String, dynamic> e) =>
  465. JobListAppliedStaffListRows.fromJson(e)).toList() as M;
  466. }
  467. if (<JobListAppliedStaffListRowsSecurityIn>[] is M) {
  468. return data.map<JobListAppliedStaffListRowsSecurityIn>((
  469. Map<String, dynamic> e) =>
  470. JobListAppliedStaffListRowsSecurityIn.fromJson(e)).toList() as M;
  471. }
  472. if (<JobListAppliedStaffListRowsSecurityOut>[] is M) {
  473. return data.map<JobListAppliedStaffListRowsSecurityOut>((
  474. Map<String, dynamic> e) =>
  475. JobListAppliedStaffListRowsSecurityOut.fromJson(e)).toList() as M;
  476. }
  477. if (<JobListAppliedStaffListRowsWorkIn>[] is M) {
  478. return data.map<JobListAppliedStaffListRowsWorkIn>((
  479. Map<String, dynamic> e) =>
  480. JobListAppliedStaffListRowsWorkIn.fromJson(e)).toList() as M;
  481. }
  482. if (<JobListAppliedStaffListRowsWorkOut>[] is M) {
  483. return data.map<JobListAppliedStaffListRowsWorkOut>((
  484. Map<String, dynamic> e) =>
  485. JobListAppliedStaffListRowsWorkOut.fromJson(e)).toList() as M;
  486. }
  487. if (<JobListAppliedStaffSearchEntity>[] is M) {
  488. return data.map<JobListAppliedStaffSearchEntity>((
  489. Map<String, dynamic> e) =>
  490. JobListAppliedStaffSearchEntity.fromJson(e)).toList() as M;
  491. }
  492. if (<JobListAppliedStaffSearchRows>[] is M) {
  493. return data.map<JobListAppliedStaffSearchRows>((Map<String, dynamic> e) =>
  494. JobListAppliedStaffSearchRows.fromJson(e)).toList() as M;
  495. }
  496. if (<JobListAppliedWorkFlowEntity>[] is M) {
  497. return data.map<JobListAppliedWorkFlowEntity>((Map<String, dynamic> e) =>
  498. JobListAppliedWorkFlowEntity.fromJson(e)).toList() as M;
  499. }
  500. if (<JobListAppliedWorkFlowRecords>[] is M) {
  501. return data.map<JobListAppliedWorkFlowRecords>((Map<String, dynamic> e) =>
  502. JobListAppliedWorkFlowRecords.fromJson(e)).toList() as M;
  503. }
  504. if (<JobListDetailEntity>[] is M) {
  505. return data.map<JobListDetailEntity>((Map<String, dynamic> e) =>
  506. JobListDetailEntity.fromJson(e)).toList() as M;
  507. }
  508. if (<JobListDetailDepartmentList>[] is M) {
  509. return data.map<JobListDetailDepartmentList>((Map<String, dynamic> e) =>
  510. JobListDetailDepartmentList.fromJson(e)).toList() as M;
  511. }
  512. if (<JobListERDetailEntity>[] is M) {
  513. return data.map<JobListERDetailEntity>((Map<String, dynamic> e) =>
  514. JobListERDetailEntity.fromJson(e)).toList() as M;
  515. }
  516. if (<JobListERDetailJob>[] is M) {
  517. return data.map<JobListERDetailJob>((Map<String, dynamic> e) =>
  518. JobListERDetailJob.fromJson(e)).toList() as M;
  519. }
  520. if (<JobListEROptionEntity>[] is M) {
  521. return data.map<JobListEROptionEntity>((Map<String, dynamic> e) =>
  522. JobListEROptionEntity.fromJson(e)).toList() as M;
  523. }
  524. if (<JobListEROptionFilter>[] is M) {
  525. return data.map<JobListEROptionFilter>((Map<String, dynamic> e) =>
  526. JobListEROptionFilter.fromJson(e)).toList() as M;
  527. }
  528. if (<JobListEditIndexSGEntity>[] is M) {
  529. return data.map<JobListEditIndexSGEntity>((Map<String, dynamic> e) =>
  530. JobListEditIndexSGEntity.fromJson(e)).toList() as M;
  531. }
  532. if (<JobListEditIndexOption>[] is M) {
  533. return data.map<JobListEditIndexOption>((Map<String, dynamic> e) =>
  534. JobListEditIndexOption.fromJson(e)).toList() as M;
  535. }
  536. if (<JobListEntity>[] is M) {
  537. return data.map<JobListEntity>((Map<String, dynamic> e) =>
  538. JobListEntity.fromJson(e)).toList() as M;
  539. }
  540. if (<JobListRows>[] is M) {
  541. return data.map<JobListRows>((Map<String, dynamic> e) =>
  542. JobListRows.fromJson(e)).toList() as M;
  543. }
  544. if (<JobListIndexEntity>[] is M) {
  545. return data.map<JobListIndexEntity>((Map<String, dynamic> e) =>
  546. JobListIndexEntity.fromJson(e)).toList() as M;
  547. }
  548. if (<JobListIndexDepartmentList>[] is M) {
  549. return data.map<JobListIndexDepartmentList>((Map<String, dynamic> e) =>
  550. JobListIndexDepartmentList.fromJson(e)).toList() as M;
  551. }
  552. if (<JobListIndexStatusList>[] is M) {
  553. return data.map<JobListIndexStatusList>((Map<String, dynamic> e) =>
  554. JobListIndexStatusList.fromJson(e)).toList() as M;
  555. }
  556. if (<JobListIndexSGEntity>[] is M) {
  557. return data.map<JobListIndexSGEntity>((Map<String, dynamic> e) =>
  558. JobListIndexSGEntity.fromJson(e)).toList() as M;
  559. }
  560. if (<JobListIndexSGOption>[] is M) {
  561. return data.map<JobListIndexSGOption>((Map<String, dynamic> e) =>
  562. JobListIndexSGOption.fromJson(e)).toList() as M;
  563. }
  564. if (<JobListRemarkViewEntity>[] is M) {
  565. return data.map<JobListRemarkViewEntity>((Map<String, dynamic> e) =>
  566. JobListRemarkViewEntity.fromJson(e)).toList() as M;
  567. }
  568. if (<JobListSGEntity>[] is M) {
  569. return data.map<JobListSGEntity>((Map<String, dynamic> e) =>
  570. JobListSGEntity.fromJson(e)).toList() as M;
  571. }
  572. if (<JobListSGRows>[] is M) {
  573. return data.map<JobListSGRows>((Map<String, dynamic> e) =>
  574. JobListSGRows.fromJson(e)).toList() as M;
  575. }
  576. if (<JobTemplateEditIndexEntity>[] is M) {
  577. return data.map<JobTemplateEditIndexEntity>((Map<String, dynamic> e) =>
  578. JobTemplateEditIndexEntity.fromJson(e)).toList() as M;
  579. }
  580. if (<JobTemplateEditIndexAgeList>[] is M) {
  581. return data.map<JobTemplateEditIndexAgeList>((Map<String, dynamic> e) =>
  582. JobTemplateEditIndexAgeList.fromJson(e)).toList() as M;
  583. }
  584. if (<JobTemplateEditIndexSexList>[] is M) {
  585. return data.map<JobTemplateEditIndexSexList>((Map<String, dynamic> e) =>
  586. JobTemplateEditIndexSexList.fromJson(e)).toList() as M;
  587. }
  588. if (<JobTemplateEditIndexLanguageList>[] is M) {
  589. return data.map<JobTemplateEditIndexLanguageList>((
  590. Map<String, dynamic> e) =>
  591. JobTemplateEditIndexLanguageList.fromJson(e)).toList() as M;
  592. }
  593. if (<JobTemplateSGEntity>[] is M) {
  594. return data.map<JobTemplateSGEntity>((Map<String, dynamic> e) =>
  595. JobTemplateSGEntity.fromJson(e)).toList() as M;
  596. }
  597. if (<JobTemplateSGRows>[] is M) {
  598. return data.map<JobTemplateSGRows>((Map<String, dynamic> e) =>
  599. JobTemplateSGRows.fromJson(e)).toList() as M;
  600. }
  601. if (<JobTitleEditIndexEntity>[] is M) {
  602. return data.map<JobTitleEditIndexEntity>((Map<String, dynamic> e) =>
  603. JobTitleEditIndexEntity.fromJson(e)).toList() as M;
  604. }
  605. if (<JobTitleEditIndexTemplate>[] is M) {
  606. return data.map<JobTitleEditIndexTemplate>((Map<String, dynamic> e) =>
  607. JobTitleEditIndexTemplate.fromJson(e)).toList() as M;
  608. }
  609. if (<JobTitleSGEntity>[] is M) {
  610. return data.map<JobTitleSGEntity>((Map<String, dynamic> e) =>
  611. JobTitleSGEntity.fromJson(e)).toList() as M;
  612. }
  613. if (<JobTitleSGRows>[] is M) {
  614. return data.map<JobTitleSGRows>((Map<String, dynamic> e) =>
  615. JobTitleSGRows.fromJson(e)).toList() as M;
  616. }
  617. if (<LabourListEREntity>[] is M) {
  618. return data.map<LabourListEREntity>((Map<String, dynamic> e) =>
  619. LabourListEREntity.fromJson(e)).toList() as M;
  620. }
  621. if (<LabourListERRows>[] is M) {
  622. return data.map<LabourListERRows>((Map<String, dynamic> e) =>
  623. LabourListERRows.fromJson(e)).toList() as M;
  624. }
  625. if (<LabourReportEntity>[] is M) {
  626. return data.map<LabourReportEntity>((Map<String, dynamic> e) =>
  627. LabourReportEntity.fromJson(e)).toList() as M;
  628. }
  629. if (<LabourReportRows>[] is M) {
  630. return data.map<LabourReportRows>((Map<String, dynamic> e) =>
  631. LabourReportRows.fromJson(e)).toList() as M;
  632. }
  633. if (<LabourReportTotal>[] is M) {
  634. return data.map<LabourReportTotal>((Map<String, dynamic> e) =>
  635. LabourReportTotal.fromJson(e)).toList() as M;
  636. }
  637. if (<LabourReportVNEntity>[] is M) {
  638. return data.map<LabourReportVNEntity>((Map<String, dynamic> e) =>
  639. LabourReportVNEntity.fromJson(e)).toList() as M;
  640. }
  641. if (<LabourReportVNRows>[] is M) {
  642. return data.map<LabourReportVNRows>((Map<String, dynamic> e) =>
  643. LabourReportVNRows.fromJson(e)).toList() as M;
  644. }
  645. if (<LabourReportVNTotal>[] is M) {
  646. return data.map<LabourReportVNTotal>((Map<String, dynamic> e) =>
  647. LabourReportVNTotal.fromJson(e)).toList() as M;
  648. }
  649. if (<LabourRequestEREntity>[] is M) {
  650. return data.map<LabourRequestEREntity>((Map<String, dynamic> e) =>
  651. LabourRequestEREntity.fromJson(e)).toList() as M;
  652. }
  653. if (<LabourRequestERCountList>[] is M) {
  654. return data.map<LabourRequestERCountList>((Map<String, dynamic> e) =>
  655. LabourRequestERCountList.fromJson(e)).toList() as M;
  656. }
  657. if (<LabourRequestERSourceList>[] is M) {
  658. return data.map<LabourRequestERSourceList>((Map<String, dynamic> e) =>
  659. LabourRequestERSourceList.fromJson(e)).toList() as M;
  660. }
  661. if (<LabourRequestERSourceListRequestList>[] is M) {
  662. return data.map<LabourRequestERSourceListRequestList>((
  663. Map<String, dynamic> e) =>
  664. LabourRequestERSourceListRequestList.fromJson(e)).toList() as M;
  665. }
  666. if (<LabourRequestEROptionEntity>[] is M) {
  667. return data.map<LabourRequestEROptionEntity>((Map<String, dynamic> e) =>
  668. LabourRequestEROptionEntity.fromJson(e)).toList() as M;
  669. }
  670. if (<LabourRequestEditIndexEntity>[] is M) {
  671. return data.map<LabourRequestEditIndexEntity>((Map<String, dynamic> e) =>
  672. LabourRequestEditIndexEntity.fromJson(e)).toList() as M;
  673. }
  674. if (<LabourRequestEditIndexTemplateList>[] is M) {
  675. return data.map<LabourRequestEditIndexTemplateList>((
  676. Map<String, dynamic> e) =>
  677. LabourRequestEditIndexTemplateList.fromJson(e)).toList() as M;
  678. }
  679. if (<LabourRequestEditIndexDepartmentList>[] is M) {
  680. return data.map<LabourRequestEditIndexDepartmentList>((
  681. Map<String, dynamic> e) =>
  682. LabourRequestEditIndexDepartmentList.fromJson(e)).toList() as M;
  683. }
  684. if (<LabourRequestIndexEntity>[] is M) {
  685. return data.map<LabourRequestIndexEntity>((Map<String, dynamic> e) =>
  686. LabourRequestIndexEntity.fromJson(e)).toList() as M;
  687. }
  688. if (<LabourRequestIndexDepartmentList>[] is M) {
  689. return data.map<LabourRequestIndexDepartmentList>((
  690. Map<String, dynamic> e) =>
  691. LabourRequestIndexDepartmentList.fromJson(e)).toList() as M;
  692. }
  693. if (<LabourRequestIndexStatusList>[] is M) {
  694. return data.map<LabourRequestIndexStatusList>((Map<String, dynamic> e) =>
  695. LabourRequestIndexStatusList.fromJson(e)).toList() as M;
  696. }
  697. if (<LabourRequestListEntity>[] is M) {
  698. return data.map<LabourRequestListEntity>((Map<String, dynamic> e) =>
  699. LabourRequestListEntity.fromJson(e)).toList() as M;
  700. }
  701. if (<LabourRequestListRows>[] is M) {
  702. return data.map<LabourRequestListRows>((Map<String, dynamic> e) =>
  703. LabourRequestListRows.fromJson(e)).toList() as M;
  704. }
  705. if (<LabourRequestWorkFlowEntity>[] is M) {
  706. return data.map<LabourRequestWorkFlowEntity>((Map<String, dynamic> e) =>
  707. LabourRequestWorkFlowEntity.fromJson(e)).toList() as M;
  708. }
  709. if (<LabourRequestWorkFlowRecords>[] is M) {
  710. return data.map<LabourRequestWorkFlowRecords>((Map<String, dynamic> e) =>
  711. LabourRequestWorkFlowRecords.fromJson(e)).toList() as M;
  712. }
  713. if (<LabourReviewListEntity>[] is M) {
  714. return data.map<LabourReviewListEntity>((Map<String, dynamic> e) =>
  715. LabourReviewListEntity.fromJson(e)).toList() as M;
  716. }
  717. if (<LabourReviewListRows>[] is M) {
  718. return data.map<LabourReviewListRows>((Map<String, dynamic> e) =>
  719. LabourReviewListRows.fromJson(e)).toList() as M;
  720. }
  721. if (<LabourReviewStatusEntity>[] is M) {
  722. return data.map<LabourReviewStatusEntity>((Map<String, dynamic> e) =>
  723. LabourReviewStatusEntity.fromJson(e)).toList() as M;
  724. }
  725. if (<LabourReviewStatusRecords>[] is M) {
  726. return data.map<LabourReviewStatusRecords>((Map<String, dynamic> e) =>
  727. LabourReviewStatusRecords.fromJson(e)).toList() as M;
  728. }
  729. if (<PositionTableEntity>[] is M) {
  730. return data.map<PositionTableEntity>((Map<String, dynamic> e) =>
  731. PositionTableEntity.fromJson(e)).toList() as M;
  732. }
  733. if (<PositionTableRows>[] is M) {
  734. return data.map<PositionTableRows>((Map<String, dynamic> e) =>
  735. PositionTableRows.fromJson(e)).toList() as M;
  736. }
  737. if (<ReviseIndexSGEntity>[] is M) {
  738. return data.map<ReviseIndexSGEntity>((Map<String, dynamic> e) =>
  739. ReviseIndexSGEntity.fromJson(e)).toList() as M;
  740. }
  741. if (<ReviseIndexSGStatusList>[] is M) {
  742. return data.map<ReviseIndexSGStatusList>((Map<String, dynamic> e) =>
  743. ReviseIndexSGStatusList.fromJson(e)).toList() as M;
  744. }
  745. if (<ReviseListSGEntity>[] is M) {
  746. return data.map<ReviseListSGEntity>((Map<String, dynamic> e) =>
  747. ReviseListSGEntity.fromJson(e)).toList() as M;
  748. }
  749. if (<ReviseListSGRows>[] is M) {
  750. return data.map<ReviseListSGRows>((Map<String, dynamic> e) =>
  751. ReviseListSGRows.fromJson(e)).toList() as M;
  752. }
  753. if (<ReviseLogSGEntity>[] is M) {
  754. return data.map<ReviseLogSGEntity>((Map<String, dynamic> e) =>
  755. ReviseLogSGEntity.fromJson(e)).toList() as M;
  756. }
  757. if (<ReviseLogSGRecords>[] is M) {
  758. return data.map<ReviseLogSGRecords>((Map<String, dynamic> e) =>
  759. ReviseLogSGRecords.fromJson(e)).toList() as M;
  760. }
  761. if (<ReviseLogSGRecordsContent>[] is M) {
  762. return data.map<ReviseLogSGRecordsContent>((Map<String, dynamic> e) =>
  763. ReviseLogSGRecordsContent.fromJson(e)).toList() as M;
  764. }
  765. if (<ReviseLogSGRecordsOption>[] is M) {
  766. return data.map<ReviseLogSGRecordsOption>((Map<String, dynamic> e) =>
  767. ReviseLogSGRecordsOption.fromJson(e)).toList() as M;
  768. }
  769. if (<SGAttendanceReviewOptionEntity>[] is M) {
  770. return data.map<SGAttendanceReviewOptionEntity>((
  771. Map<String, dynamic> e) => SGAttendanceReviewOptionEntity.fromJson(e))
  772. .toList() as M;
  773. }
  774. if (<SGAttendanceReviewTableEntity>[] is M) {
  775. return data.map<SGAttendanceReviewTableEntity>((Map<String, dynamic> e) =>
  776. SGAttendanceReviewTableEntity.fromJson(e)).toList() as M;
  777. }
  778. if (<SGAttendanceReviewTableRows>[] is M) {
  779. return data.map<SGAttendanceReviewTableRows>((Map<String, dynamic> e) =>
  780. SGAttendanceReviewTableRows.fromJson(e)).toList() as M;
  781. }
  782. if (<SGAttendanceReviewTableRowsCheck>[] is M) {
  783. return data.map<SGAttendanceReviewTableRowsCheck>((
  784. Map<String, dynamic> e) =>
  785. SGAttendanceReviewTableRowsCheck.fromJson(e)).toList() as M;
  786. }
  787. if (<SGAttendanceReviewWorkflowEntity>[] is M) {
  788. return data.map<SGAttendanceReviewWorkflowEntity>((
  789. Map<String, dynamic> e) =>
  790. SGAttendanceReviewWorkflowEntity.fromJson(e)).toList() as M;
  791. }
  792. if (<SGAttendanceReviewWorkflowRow>[] is M) {
  793. return data.map<SGAttendanceReviewWorkflowRow>((Map<String, dynamic> e) =>
  794. SGAttendanceReviewWorkflowRow.fromJson(e)).toList() as M;
  795. }
  796. if (<SGAttendanceReviewWorkflowRecords>[] is M) {
  797. return data.map<SGAttendanceReviewWorkflowRecords>((
  798. Map<String, dynamic> e) =>
  799. SGAttendanceReviewWorkflowRecords.fromJson(e)).toList() as M;
  800. }
  801. if (<SGDashboardEntity>[] is M) {
  802. return data.map<SGDashboardEntity>((Map<String, dynamic> e) =>
  803. SGDashboardEntity.fromJson(e)).toList() as M;
  804. }
  805. if (<SGDashboardAgencyList>[] is M) {
  806. return data.map<SGDashboardAgencyList>((Map<String, dynamic> e) =>
  807. SGDashboardAgencyList.fromJson(e)).toList() as M;
  808. }
  809. if (<SGDashboardAgencyListDays>[] is M) {
  810. return data.map<SGDashboardAgencyListDays>((Map<String, dynamic> e) =>
  811. SGDashboardAgencyListDays.fromJson(e)).toList() as M;
  812. }
  813. if (<SGLabourRequestAddOptionEntity>[] is M) {
  814. return data.map<SGLabourRequestAddOptionEntity>((
  815. Map<String, dynamic> e) => SGLabourRequestAddOptionEntity.fromJson(e))
  816. .toList() as M;
  817. }
  818. if (<LabourRequestAgencyEntity>[] is M) {
  819. return data.map<LabourRequestAgencyEntity>((Map<String, dynamic> e) =>
  820. LabourRequestAgencyEntity.fromJson(e)).toList() as M;
  821. }
  822. if (<SGLabourRequestDetailEntity>[] is M) {
  823. return data.map<SGLabourRequestDetailEntity>((Map<String, dynamic> e) =>
  824. SGLabourRequestDetailEntity.fromJson(e)).toList() as M;
  825. }
  826. if (<SGLabourRequestDetailLabReq>[] is M) {
  827. return data.map<SGLabourRequestDetailLabReq>((Map<String, dynamic> e) =>
  828. SGLabourRequestDetailLabReq.fromJson(e)).toList() as M;
  829. }
  830. if (<SGLabourRequestOptionEntity>[] is M) {
  831. return data.map<SGLabourRequestOptionEntity>((Map<String, dynamic> e) =>
  832. SGLabourRequestOptionEntity.fromJson(e)).toList() as M;
  833. }
  834. if (<SGLabourRequestTableEntity>[] is M) {
  835. return data.map<SGLabourRequestTableEntity>((Map<String, dynamic> e) =>
  836. SGLabourRequestTableEntity.fromJson(e)).toList() as M;
  837. }
  838. if (<SGLabourRequestTableRows>[] is M) {
  839. return data.map<SGLabourRequestTableRows>((Map<String, dynamic> e) =>
  840. SGLabourRequestTableRows.fromJson(e)).toList() as M;
  841. }
  842. if (<SGLabourRequestWorlFlowEntity>[] is M) {
  843. return data.map<SGLabourRequestWorlFlowEntity>((Map<String, dynamic> e) =>
  844. SGLabourRequestWorlFlowEntity.fromJson(e)).toList() as M;
  845. }
  846. if (<SGLabourRequestWorlFlowRow>[] is M) {
  847. return data.map<SGLabourRequestWorlFlowRow>((Map<String, dynamic> e) =>
  848. SGLabourRequestWorlFlowRow.fromJson(e)).toList() as M;
  849. }
  850. if (<SGLabourRequestWorlFlowRecords>[] is M) {
  851. return data.map<SGLabourRequestWorlFlowRecords>((
  852. Map<String, dynamic> e) => SGLabourRequestWorlFlowRecords.fromJson(e))
  853. .toList() as M;
  854. }
  855. if (<SGLabourReviewOptionEntity>[] is M) {
  856. return data.map<SGLabourReviewOptionEntity>((Map<String, dynamic> e) =>
  857. SGLabourReviewOptionEntity.fromJson(e)).toList() as M;
  858. }
  859. if (<SGLabourReviewTableEntity>[] is M) {
  860. return data.map<SGLabourReviewTableEntity>((Map<String, dynamic> e) =>
  861. SGLabourReviewTableEntity.fromJson(e)).toList() as M;
  862. }
  863. if (<SGLabourReviewTableRows>[] is M) {
  864. return data.map<SGLabourReviewTableRows>((Map<String, dynamic> e) =>
  865. SGLabourReviewTableRows.fromJson(e)).toList() as M;
  866. }
  867. if (<SignInSignOutEntity>[] is M) {
  868. return data.map<SignInSignOutEntity>((Map<String, dynamic> e) =>
  869. SignInSignOutEntity.fromJson(e)).toList() as M;
  870. }
  871. if (<SignInSignOutRows>[] is M) {
  872. return data.map<SignInSignOutRows>((Map<String, dynamic> e) =>
  873. SignInSignOutRows.fromJson(e)).toList() as M;
  874. }
  875. if (<StaffDetailEntity>[] is M) {
  876. return data.map<StaffDetailEntity>((Map<String, dynamic> e) =>
  877. StaffDetailEntity.fromJson(e)).toList() as M;
  878. }
  879. if (<StaffDetailSGEntity>[] is M) {
  880. return data.map<StaffDetailSGEntity>((Map<String, dynamic> e) =>
  881. StaffDetailSGEntity.fromJson(e)).toList() as M;
  882. }
  883. if (<StaffDetailSGReviews>[] is M) {
  884. return data.map<StaffDetailSGReviews>((Map<String, dynamic> e) =>
  885. StaffDetailSGReviews.fromJson(e)).toList() as M;
  886. }
  887. if (<StaffDetailSGReviewsReviews>[] is M) {
  888. return data.map<StaffDetailSGReviewsReviews>((Map<String, dynamic> e) =>
  889. StaffDetailSGReviewsReviews.fromJson(e)).toList() as M;
  890. }
  891. if (<StaffJobHistorySGEntity>[] is M) {
  892. return data.map<StaffJobHistorySGEntity>((Map<String, dynamic> e) =>
  893. StaffJobHistorySGEntity.fromJson(e)).toList() as M;
  894. }
  895. if (<StaffJobHistorySGRows>[] is M) {
  896. return data.map<StaffJobHistorySGRows>((Map<String, dynamic> e) =>
  897. StaffJobHistorySGRows.fromJson(e)).toList() as M;
  898. }
  899. if (<StaffLabourHistoryEntity>[] is M) {
  900. return data.map<StaffLabourHistoryEntity>((Map<String, dynamic> e) =>
  901. StaffLabourHistoryEntity.fromJson(e)).toList() as M;
  902. }
  903. if (<StaffLabourHistoryRows>[] is M) {
  904. return data.map<StaffLabourHistoryRows>((Map<String, dynamic> e) =>
  905. StaffLabourHistoryRows.fromJson(e)).toList() as M;
  906. }
  907. if (<StaffLabourHistoryRowsSecurityIn>[] is M) {
  908. return data.map<StaffLabourHistoryRowsSecurityIn>((
  909. Map<String, dynamic> e) =>
  910. StaffLabourHistoryRowsSecurityIn.fromJson(e)).toList() as M;
  911. }
  912. if (<StaffLabourHistoryRowsSecurityOut>[] is M) {
  913. return data.map<StaffLabourHistoryRowsSecurityOut>((
  914. Map<String, dynamic> e) =>
  915. StaffLabourHistoryRowsSecurityOut.fromJson(e)).toList() as M;
  916. }
  917. if (<StaffLabourHistoryRowsWorkIn>[] is M) {
  918. return data.map<StaffLabourHistoryRowsWorkIn>((Map<String, dynamic> e) =>
  919. StaffLabourHistoryRowsWorkIn.fromJson(e)).toList() as M;
  920. }
  921. if (<StaffLabourHistoryRowsWorkOut>[] is M) {
  922. return data.map<StaffLabourHistoryRowsWorkOut>((Map<String, dynamic> e) =>
  923. StaffLabourHistoryRowsWorkOut.fromJson(e)).toList() as M;
  924. }
  925. if (<StaffRemarkHistoryEntity>[] is M) {
  926. return data.map<StaffRemarkHistoryEntity>((Map<String, dynamic> e) =>
  927. StaffRemarkHistoryEntity.fromJson(e)).toList() as M;
  928. }
  929. if (<StaffRemarkHistoryRows>[] is M) {
  930. return data.map<StaffRemarkHistoryRows>((Map<String, dynamic> e) =>
  931. StaffRemarkHistoryRows.fromJson(e)).toList() as M;
  932. }
  933. if (<StaffReportVNEntity>[] is M) {
  934. return data.map<StaffReportVNEntity>((Map<String, dynamic> e) =>
  935. StaffReportVNEntity.fromJson(e)).toList() as M;
  936. }
  937. if (<StaffRequestReportEntity>[] is M) {
  938. return data.map<StaffRequestReportEntity>((Map<String, dynamic> e) =>
  939. StaffRequestReportEntity.fromJson(e)).toList() as M;
  940. }
  941. if (<StaffReviewHistorySGEntity>[] is M) {
  942. return data.map<StaffReviewHistorySGEntity>((Map<String, dynamic> e) =>
  943. StaffReviewHistorySGEntity.fromJson(e)).toList() as M;
  944. }
  945. if (<StaffReviewHistorySGReviews>[] is M) {
  946. return data.map<StaffReviewHistorySGReviews>((Map<String, dynamic> e) =>
  947. StaffReviewHistorySGReviews.fromJson(e)).toList() as M;
  948. }
  949. if (<SwitchProjectEntity>[] is M) {
  950. return data.map<SwitchProjectEntity>((Map<String, dynamic> e) =>
  951. SwitchProjectEntity.fromJson(e)).toList() as M;
  952. }
  953. if (<SwitchProjectUserList>[] is M) {
  954. return data.map<SwitchProjectUserList>((Map<String, dynamic> e) =>
  955. SwitchProjectUserList.fromJson(e)).toList() as M;
  956. }
  957. if (<THAppliedEditEntity>[] is M) {
  958. return data.map<THAppliedEditEntity>((Map<String, dynamic> e) =>
  959. THAppliedEditEntity.fromJson(e)).toList() as M;
  960. }
  961. if (<THAppliedEditApplied>[] is M) {
  962. return data.map<THAppliedEditApplied>((Map<String, dynamic> e) =>
  963. THAppliedEditApplied.fromJson(e)).toList() as M;
  964. }
  965. if (<THAppliedEmployeeEntity>[] is M) {
  966. return data.map<THAppliedEmployeeEntity>((Map<String, dynamic> e) =>
  967. THAppliedEmployeeEntity.fromJson(e)).toList() as M;
  968. }
  969. if (<THAppliedEmployeeRows>[] is M) {
  970. return data.map<THAppliedEmployeeRows>((Map<String, dynamic> e) =>
  971. THAppliedEmployeeRows.fromJson(e)).toList() as M;
  972. }
  973. if (<THAppliedIndexEntity>[] is M) {
  974. return data.map<THAppliedIndexEntity>((Map<String, dynamic> e) =>
  975. THAppliedIndexEntity.fromJson(e)).toList() as M;
  976. }
  977. if (<THAppliedIndexJob>[] is M) {
  978. return data.map<THAppliedIndexJob>((Map<String, dynamic> e) =>
  979. THAppliedIndexJob.fromJson(e)).toList() as M;
  980. }
  981. if (<THAppliedTableEntity>[] is M) {
  982. return data.map<THAppliedTableEntity>((Map<String, dynamic> e) =>
  983. THAppliedTableEntity.fromJson(e)).toList() as M;
  984. }
  985. if (<THAppliedTableRows>[] is M) {
  986. return data.map<THAppliedTableRows>((Map<String, dynamic> e) =>
  987. THAppliedTableRows.fromJson(e)).toList() as M;
  988. }
  989. if (<THAppliedTableCheckInOut>[] is M) {
  990. return data.map<THAppliedTableCheckInOut>((Map<String, dynamic> e) =>
  991. THAppliedTableCheckInOut.fromJson(e)).toList() as M;
  992. }
  993. if (<THEmployeeDetailEntity>[] is M) {
  994. return data.map<THEmployeeDetailEntity>((Map<String, dynamic> e) =>
  995. THEmployeeDetailEntity.fromJson(e)).toList() as M;
  996. }
  997. if (<THEmployeeDetailStaff>[] is M) {
  998. return data.map<THEmployeeDetailStaff>((Map<String, dynamic> e) =>
  999. THEmployeeDetailStaff.fromJson(e)).toList() as M;
  1000. }
  1001. if (<THEmployeeDetailReviews>[] is M) {
  1002. return data.map<THEmployeeDetailReviews>((Map<String, dynamic> e) =>
  1003. THEmployeeDetailReviews.fromJson(e)).toList() as M;
  1004. }
  1005. if (<THEmployeeRemarksEntity>[] is M) {
  1006. return data.map<THEmployeeRemarksEntity>((Map<String, dynamic> e) =>
  1007. THEmployeeRemarksEntity.fromJson(e)).toList() as M;
  1008. }
  1009. if (<THEmployeeRemarksReviews>[] is M) {
  1010. return data.map<THEmployeeRemarksReviews>((Map<String, dynamic> e) =>
  1011. THEmployeeRemarksReviews.fromJson(e)).toList() as M;
  1012. }
  1013. if (<THOAAttachmentEntity>[] is M) {
  1014. return data.map<THOAAttachmentEntity>((Map<String, dynamic> e) =>
  1015. THOAAttachmentEntity.fromJson(e)).toList() as M;
  1016. }
  1017. if (<THOAAttachmentRows>[] is M) {
  1018. return data.map<THOAAttachmentRows>((Map<String, dynamic> e) =>
  1019. THOAAttachmentRows.fromJson(e)).toList() as M;
  1020. }
  1021. if (<THOALabourDetailEntity>[] is M) {
  1022. return data.map<THOALabourDetailEntity>((Map<String, dynamic> e) =>
  1023. THOALabourDetailEntity.fromJson(e)).toList() as M;
  1024. }
  1025. if (<THOALabourDetailLabourRequest>[] is M) {
  1026. return data.map<THOALabourDetailLabourRequest>((Map<String, dynamic> e) =>
  1027. THOALabourDetailLabourRequest.fromJson(e)).toList() as M;
  1028. }
  1029. if (<THOALabourReviewTableEntity>[] is M) {
  1030. return data.map<THOALabourReviewTableEntity>((Map<String, dynamic> e) =>
  1031. THOALabourReviewTableEntity.fromJson(e)).toList() as M;
  1032. }
  1033. if (<THOALabourReviewTableRows>[] is M) {
  1034. return data.map<THOALabourReviewTableRows>((Map<String, dynamic> e) =>
  1035. THOALabourReviewTableRows.fromJson(e)).toList() as M;
  1036. }
  1037. if (<THOALabourTableEntity>[] is M) {
  1038. return data.map<THOALabourTableEntity>((Map<String, dynamic> e) =>
  1039. THOALabourTableEntity.fromJson(e)).toList() as M;
  1040. }
  1041. if (<THOALabourTableRows>[] is M) {
  1042. return data.map<THOALabourTableRows>((Map<String, dynamic> e) =>
  1043. THOALabourTableRows.fromJson(e)).toList() as M;
  1044. }
  1045. if (<THUploadFileEntity>[] is M) {
  1046. return data.map<THUploadFileEntity>((Map<String, dynamic> e) =>
  1047. THUploadFileEntity.fromJson(e)).toList() as M;
  1048. }
  1049. if (<UKAttendanceEntity>[] is M) {
  1050. return data.map<UKAttendanceEntity>((Map<String, dynamic> e) =>
  1051. UKAttendanceEntity.fromJson(e)).toList() as M;
  1052. }
  1053. if (<UKAttendanceRows>[] is M) {
  1054. return data.map<UKAttendanceRows>((Map<String, dynamic> e) =>
  1055. UKAttendanceRows.fromJson(e)).toList() as M;
  1056. }
  1057. if (<UKAttendanceInOut>[] is M) {
  1058. return data.map<UKAttendanceInOut>((Map<String, dynamic> e) =>
  1059. UKAttendanceInOut.fromJson(e)).toList() as M;
  1060. }
  1061. if (<UKReportAttendanceEntity>[] is M) {
  1062. return data.map<UKReportAttendanceEntity>((Map<String, dynamic> e) =>
  1063. UKReportAttendanceEntity.fromJson(e)).toList() as M;
  1064. }
  1065. if (<UKReportAttendanceRows>[] is M) {
  1066. return data.map<UKReportAttendanceRows>((Map<String, dynamic> e) =>
  1067. UKReportAttendanceRows.fromJson(e)).toList() as M;
  1068. }
  1069. if (<UKReportLabourEntity>[] is M) {
  1070. return data.map<UKReportLabourEntity>((Map<String, dynamic> e) =>
  1071. UKReportLabourEntity.fromJson(e)).toList() as M;
  1072. }
  1073. if (<UKReportLabourRows>[] is M) {
  1074. return data.map<UKReportLabourRows>((Map<String, dynamic> e) =>
  1075. UKReportLabourRows.fromJson(e)).toList() as M;
  1076. }
  1077. if (<UKReportWorkingHoursEntity>[] is M) {
  1078. return data.map<UKReportWorkingHoursEntity>((Map<String, dynamic> e) =>
  1079. UKReportWorkingHoursEntity.fromJson(e)).toList() as M;
  1080. }
  1081. if (<UKReportWorkingHoursRows>[] is M) {
  1082. return data.map<UKReportWorkingHoursRows>((Map<String, dynamic> e) =>
  1083. UKReportWorkingHoursRows.fromJson(e)).toList() as M;
  1084. }
  1085. if (<UKSecurityAttendanceEntity>[] is M) {
  1086. return data.map<UKSecurityAttendanceEntity>((Map<String, dynamic> e) =>
  1087. UKSecurityAttendanceEntity.fromJson(e)).toList() as M;
  1088. }
  1089. if (<UKSecurityAttendanceRows>[] is M) {
  1090. return data.map<UKSecurityAttendanceRows>((Map<String, dynamic> e) =>
  1091. UKSecurityAttendanceRows.fromJson(e)).toList() as M;
  1092. }
  1093. if (<UKSecurityInOut>[] is M) {
  1094. return data.map<UKSecurityInOut>((Map<String, dynamic> e) =>
  1095. UKSecurityInOut.fromJson(e)).toList() as M;
  1096. }
  1097. if (<UKSecurityAttendanceOptionEntity>[] is M) {
  1098. return data.map<UKSecurityAttendanceOptionEntity>((
  1099. Map<String, dynamic> e) =>
  1100. UKSecurityAttendanceOptionEntity.fromJson(e)).toList() as M;
  1101. }
  1102. if (<UKSecurityAttendanceOptionFilter>[] is M) {
  1103. return data.map<UKSecurityAttendanceOptionFilter>((
  1104. Map<String, dynamic> e) =>
  1105. UKSecurityAttendanceOptionFilter.fromJson(e)).toList() as M;
  1106. }
  1107. if (<UKTemplateEntity>[] is M) {
  1108. return data.map<UKTemplateEntity>((Map<String, dynamic> e) =>
  1109. UKTemplateEntity.fromJson(e)).toList() as M;
  1110. }
  1111. if (<UKTemplateRows>[] is M) {
  1112. return data.map<UKTemplateRows>((Map<String, dynamic> e) =>
  1113. UKTemplateRows.fromJson(e)).toList() as M;
  1114. }
  1115. if (<UkAttendanceReviewEntity>[] is M) {
  1116. return data.map<UkAttendanceReviewEntity>((Map<String, dynamic> e) =>
  1117. UkAttendanceReviewEntity.fromJson(e)).toList() as M;
  1118. }
  1119. if (<UkAttendanceReviewRows>[] is M) {
  1120. return data.map<UkAttendanceReviewRows>((Map<String, dynamic> e) =>
  1121. UkAttendanceReviewRows.fromJson(e)).toList() as M;
  1122. }
  1123. if (<UkAttendanceReviewRemarkEntity>[] is M) {
  1124. return data.map<UkAttendanceReviewRemarkEntity>((
  1125. Map<String, dynamic> e) => UkAttendanceReviewRemarkEntity.fromJson(e))
  1126. .toList() as M;
  1127. }
  1128. if (<UkJobAppliedReviseAddDetailEntity>[] is M) {
  1129. return data.map<UkJobAppliedReviseAddDetailEntity>((
  1130. Map<String, dynamic> e) =>
  1131. UkJobAppliedReviseAddDetailEntity.fromJson(e)).toList() as M;
  1132. }
  1133. if (<UkJobAppliedReviseAddDetailApplied>[] is M) {
  1134. return data.map<UkJobAppliedReviseAddDetailApplied>((
  1135. Map<String, dynamic> e) =>
  1136. UkJobAppliedReviseAddDetailApplied.fromJson(e)).toList() as M;
  1137. }
  1138. if (<UkJobAppliedReviseEditDetailEntity>[] is M) {
  1139. return data.map<UkJobAppliedReviseEditDetailEntity>((
  1140. Map<String, dynamic> e) =>
  1141. UkJobAppliedReviseEditDetailEntity.fromJson(e)).toList() as M;
  1142. }
  1143. if (<UkJobAppliedReviseEditDetailApplied>[] is M) {
  1144. return data.map<UkJobAppliedReviseEditDetailApplied>((
  1145. Map<String, dynamic> e) =>
  1146. UkJobAppliedReviseEditDetailApplied.fromJson(e)).toList() as M;
  1147. }
  1148. if (<UkJobAppliedReviseEditDetailRevise>[] is M) {
  1149. return data.map<UkJobAppliedReviseEditDetailRevise>((
  1150. Map<String, dynamic> e) =>
  1151. UkJobAppliedReviseEditDetailRevise.fromJson(e)).toList() as M;
  1152. }
  1153. if (<UkJobAppliedReviseEditDetailReviseApplied>[] is M) {
  1154. return data.map<UkJobAppliedReviseEditDetailReviseApplied>((
  1155. Map<String, dynamic> e) =>
  1156. UkJobAppliedReviseEditDetailReviseApplied.fromJson(e)).toList() as M;
  1157. }
  1158. if (<UkJobAppliedReviseInfoEntity>[] is M) {
  1159. return data.map<UkJobAppliedReviseInfoEntity>((Map<String, dynamic> e) =>
  1160. UkJobAppliedReviseInfoEntity.fromJson(e)).toList() as M;
  1161. }
  1162. if (<UkJobAppliedReviseInfoRows>[] is M) {
  1163. return data.map<UkJobAppliedReviseInfoRows>((Map<String, dynamic> e) =>
  1164. UkJobAppliedReviseInfoRows.fromJson(e)).toList() as M;
  1165. }
  1166. if (<UkJobAppliedReviseLogEntity>[] is M) {
  1167. return data.map<UkJobAppliedReviseLogEntity>((Map<String, dynamic> e) =>
  1168. UkJobAppliedReviseLogEntity.fromJson(e)).toList() as M;
  1169. }
  1170. if (<UkJobAppliedReviseLogRecords>[] is M) {
  1171. return data.map<UkJobAppliedReviseLogRecords>((Map<String, dynamic> e) =>
  1172. UkJobAppliedReviseLogRecords.fromJson(e)).toList() as M;
  1173. }
  1174. if (<UkJobAppliedReviseLogRecordsContent>[] is M) {
  1175. return data.map<UkJobAppliedReviseLogRecordsContent>((
  1176. Map<String, dynamic> e) =>
  1177. UkJobAppliedReviseLogRecordsContent.fromJson(e)).toList() as M;
  1178. }
  1179. if (<UkJobAppliedReviseLogRecordsContentReviseHours>[] is M) {
  1180. return data.map<UkJobAppliedReviseLogRecordsContentReviseHours>((
  1181. Map<String, dynamic> e) =>
  1182. UkJobAppliedReviseLogRecordsContentReviseHours.fromJson(e))
  1183. .toList() as M;
  1184. }
  1185. if (<UkJobAppliedReviseLogRecordsContentStatus>[] is M) {
  1186. return data.map<UkJobAppliedReviseLogRecordsContentStatus>((
  1187. Map<String, dynamic> e) =>
  1188. UkJobAppliedReviseLogRecordsContentStatus.fromJson(e)).toList() as M;
  1189. }
  1190. if (<UkJobAppliedReviseLogRecordsContentReason>[] is M) {
  1191. return data.map<UkJobAppliedReviseLogRecordsContentReason>((
  1192. Map<String, dynamic> e) =>
  1193. UkJobAppliedReviseLogRecordsContentReason.fromJson(e)).toList() as M;
  1194. }
  1195. if (<UkJobAppliedStaffListEntity>[] is M) {
  1196. return data.map<UkJobAppliedStaffListEntity>((Map<String, dynamic> e) =>
  1197. UkJobAppliedStaffListEntity.fromJson(e)).toList() as M;
  1198. }
  1199. if (<UkJobAppliedStaffListRows>[] is M) {
  1200. return data.map<UkJobAppliedStaffListRows>((Map<String, dynamic> e) =>
  1201. UkJobAppliedStaffListRows.fromJson(e)).toList() as M;
  1202. }
  1203. if (<UkJobAppliedStaffListRowsSecurityIn>[] is M) {
  1204. return data.map<UkJobAppliedStaffListRowsSecurityIn>((
  1205. Map<String, dynamic> e) =>
  1206. UkJobAppliedStaffListRowsSecurityIn.fromJson(e)).toList() as M;
  1207. }
  1208. if (<UkJobAppliedStaffListRowsSecurityOut>[] is M) {
  1209. return data.map<UkJobAppliedStaffListRowsSecurityOut>((
  1210. Map<String, dynamic> e) =>
  1211. UkJobAppliedStaffListRowsSecurityOut.fromJson(e)).toList() as M;
  1212. }
  1213. if (<UkJobAppliedStaffListRowsWorkIn>[] is M) {
  1214. return data.map<UkJobAppliedStaffListRowsWorkIn>((
  1215. Map<String, dynamic> e) =>
  1216. UkJobAppliedStaffListRowsWorkIn.fromJson(e)).toList() as M;
  1217. }
  1218. if (<UkJobAppliedStaffListRowsWorkOut>[] is M) {
  1219. return data.map<UkJobAppliedStaffListRowsWorkOut>((
  1220. Map<String, dynamic> e) =>
  1221. UkJobAppliedStaffListRowsWorkOut.fromJson(e)).toList() as M;
  1222. }
  1223. if (<UkJobTemplateDetailBySelectTitleEntity>[] is M) {
  1224. return data.map<UkJobTemplateDetailBySelectTitleEntity>((
  1225. Map<String, dynamic> e) =>
  1226. UkJobTemplateDetailBySelectTitleEntity.fromJson(e)).toList() as M;
  1227. }
  1228. if (<UkLabourRequestDetailEntity>[] is M) {
  1229. return data.map<UkLabourRequestDetailEntity>((Map<String, dynamic> e) =>
  1230. UkLabourRequestDetailEntity.fromJson(e)).toList() as M;
  1231. }
  1232. if (<UkLabourRequestDetailLocationList>[] is M) {
  1233. return data.map<UkLabourRequestDetailLocationList>((
  1234. Map<String, dynamic> e) =>
  1235. UkLabourRequestDetailLocationList.fromJson(e)).toList() as M;
  1236. }
  1237. if (<UkLabourRequestDetailTemplateList>[] is M) {
  1238. return data.map<UkLabourRequestDetailTemplateList>((
  1239. Map<String, dynamic> e) =>
  1240. UkLabourRequestDetailTemplateList.fromJson(e)).toList() as M;
  1241. }
  1242. if (<UkLabourRequestDetailDepartmentList>[] is M) {
  1243. return data.map<UkLabourRequestDetailDepartmentList>((
  1244. Map<String, dynamic> e) =>
  1245. UkLabourRequestDetailDepartmentList.fromJson(e)).toList() as M;
  1246. }
  1247. if (<UkLabourRequestDetailChargeList>[] is M) {
  1248. return data.map<UkLabourRequestDetailChargeList>((
  1249. Map<String, dynamic> e) =>
  1250. UkLabourRequestDetailChargeList.fromJson(e)).toList() as M;
  1251. }
  1252. if (<UkLabourRequestDetailEmploymentList>[] is M) {
  1253. return data.map<UkLabourRequestDetailEmploymentList>((
  1254. Map<String, dynamic> e) =>
  1255. UkLabourRequestDetailEmploymentList.fromJson(e)).toList() as M;
  1256. }
  1257. if (<UkLabourRequestPreselectAddstatffListEntity>[] is M) {
  1258. return data.map<UkLabourRequestPreselectAddstatffListEntity>((
  1259. Map<String, dynamic> e) =>
  1260. UkLabourRequestPreselectAddstatffListEntity.fromJson(e))
  1261. .toList() as M;
  1262. }
  1263. if (<UkLabourRequestPreselectAddstatffListRows>[] is M) {
  1264. return data.map<UkLabourRequestPreselectAddstatffListRows>((
  1265. Map<String, dynamic> e) =>
  1266. UkLabourRequestPreselectAddstatffListRows.fromJson(e)).toList() as M;
  1267. }
  1268. if (<UkLabourRequestPreselectedListEntity>[] is M) {
  1269. return data.map<UkLabourRequestPreselectedListEntity>((
  1270. Map<String, dynamic> e) =>
  1271. UkLabourRequestPreselectedListEntity.fromJson(e)).toList() as M;
  1272. }
  1273. if (<UkLabourRequestPreselectedListRows>[] is M) {
  1274. return data.map<UkLabourRequestPreselectedListRows>((
  1275. Map<String, dynamic> e) =>
  1276. UkLabourRequestPreselectedListRows.fromJson(e)).toList() as M;
  1277. }
  1278. if (<UkLabourRequestReviewDetailEntity>[] is M) {
  1279. return data.map<UkLabourRequestReviewDetailEntity>((
  1280. Map<String, dynamic> e) =>
  1281. UkLabourRequestReviewDetailEntity.fromJson(e)).toList() as M;
  1282. }
  1283. if (<UkLabourRequestReviewDetailOrder>[] is M) {
  1284. return data.map<UkLabourRequestReviewDetailOrder>((
  1285. Map<String, dynamic> e) =>
  1286. UkLabourRequestReviewDetailOrder.fromJson(e)).toList() as M;
  1287. }
  1288. if (<UkLabourRequestReviewDetailOrderRequest>[] is M) {
  1289. return data.map<UkLabourRequestReviewDetailOrderRequest>((
  1290. Map<String, dynamic> e) =>
  1291. UkLabourRequestReviewDetailOrderRequest.fromJson(e)).toList() as M;
  1292. }
  1293. if (<UkLabourRequestReviewDetailOrderRecords>[] is M) {
  1294. return data.map<UkLabourRequestReviewDetailOrderRecords>((
  1295. Map<String, dynamic> e) =>
  1296. UkLabourRequestReviewDetailOrderRecords.fromJson(e)).toList() as M;
  1297. }
  1298. if (<UkLabourRequestReviewDetailRecords>[] is M) {
  1299. return data.map<UkLabourRequestReviewDetailRecords>((
  1300. Map<String, dynamic> e) =>
  1301. UkLabourRequestReviewDetailRecords.fromJson(e)).toList() as M;
  1302. }
  1303. if (<UkLabourRequestReviewListEntity>[] is M) {
  1304. return data.map<UkLabourRequestReviewListEntity>((
  1305. Map<String, dynamic> e) =>
  1306. UkLabourRequestReviewListEntity.fromJson(e)).toList() as M;
  1307. }
  1308. if (<UkLabourRequestReviewListRows>[] is M) {
  1309. return data.map<UkLabourRequestReviewListRows>((Map<String, dynamic> e) =>
  1310. UkLabourRequestReviewListRows.fromJson(e)).toList() as M;
  1311. }
  1312. if (<UkLabourRequestTableEntity>[] is M) {
  1313. return data.map<UkLabourRequestTableEntity>((Map<String, dynamic> e) =>
  1314. UkLabourRequestTableEntity.fromJson(e)).toList() as M;
  1315. }
  1316. if (<UkLabourRequestTableRows>[] is M) {
  1317. return data.map<UkLabourRequestTableRows>((Map<String, dynamic> e) =>
  1318. UkLabourRequestTableRows.fromJson(e)).toList() as M;
  1319. }
  1320. if (<UkLabourReviewStatusEntity>[] is M) {
  1321. return data.map<UkLabourReviewStatusEntity>((Map<String, dynamic> e) =>
  1322. UkLabourReviewStatusEntity.fromJson(e)).toList() as M;
  1323. }
  1324. if (<UkLabourReviewStatusRow>[] is M) {
  1325. return data.map<UkLabourReviewStatusRow>((Map<String, dynamic> e) =>
  1326. UkLabourReviewStatusRow.fromJson(e)).toList() as M;
  1327. }
  1328. if (<UkLabourReviewStatusRecords>[] is M) {
  1329. return data.map<UkLabourReviewStatusRecords>((Map<String, dynamic> e) =>
  1330. UkLabourReviewStatusRecords.fromJson(e)).toList() as M;
  1331. }
  1332. if (<UkReportCasualEntity>[] is M) {
  1333. return data.map<UkReportCasualEntity>((Map<String, dynamic> e) =>
  1334. UkReportCasualEntity.fromJson(e)).toList() as M;
  1335. }
  1336. if (<UkReportCasualRows>[] is M) {
  1337. return data.map<UkReportCasualRows>((Map<String, dynamic> e) =>
  1338. UkReportCasualRows.fromJson(e)).toList() as M;
  1339. }
  1340. if (<UkReportCasualTotal>[] is M) {
  1341. return data.map<UkReportCasualTotal>((Map<String, dynamic> e) =>
  1342. UkReportCasualTotal.fromJson(e)).toList() as M;
  1343. }
  1344. if (<UkReportCasualPayEntity>[] is M) {
  1345. return data.map<UkReportCasualPayEntity>((Map<String, dynamic> e) =>
  1346. UkReportCasualPayEntity.fromJson(e)).toList() as M;
  1347. }
  1348. if (<UkReportCasualPayRows>[] is M) {
  1349. return data.map<UkReportCasualPayRows>((Map<String, dynamic> e) =>
  1350. UkReportCasualPayRows.fromJson(e)).toList() as M;
  1351. }
  1352. if (<UkReportCasualPayTotal>[] is M) {
  1353. return data.map<UkReportCasualPayTotal>((Map<String, dynamic> e) =>
  1354. UkReportCasualPayTotal.fromJson(e)).toList() as M;
  1355. }
  1356. if (<UkReportOutletEntity>[] is M) {
  1357. return data.map<UkReportOutletEntity>((Map<String, dynamic> e) =>
  1358. UkReportOutletEntity.fromJson(e)).toList() as M;
  1359. }
  1360. if (<UkReportOutletRequestList>[] is M) {
  1361. return data.map<UkReportOutletRequestList>((Map<String, dynamic> e) =>
  1362. UkReportOutletRequestList.fromJson(e)).toList() as M;
  1363. }
  1364. if (<UkStaffDetailEntity>[] is M) {
  1365. return data.map<UkStaffDetailEntity>((Map<String, dynamic> e) =>
  1366. UkStaffDetailEntity.fromJson(e)).toList() as M;
  1367. }
  1368. if (<UkStaffDetailCertificates>[] is M) {
  1369. return data.map<UkStaffDetailCertificates>((Map<String, dynamic> e) =>
  1370. UkStaffDetailCertificates.fromJson(e)).toList() as M;
  1371. }
  1372. if (<UkStaffLabourHistoryEntity>[] is M) {
  1373. return data.map<UkStaffLabourHistoryEntity>((Map<String, dynamic> e) =>
  1374. UkStaffLabourHistoryEntity.fromJson(e)).toList() as M;
  1375. }
  1376. if (<UkStaffLabourHistoryRows>[] is M) {
  1377. return data.map<UkStaffLabourHistoryRows>((Map<String, dynamic> e) =>
  1378. UkStaffLabourHistoryRows.fromJson(e)).toList() as M;
  1379. }
  1380. if (<UkStaffLabourHistoryRowsSecurityIn>[] is M) {
  1381. return data.map<UkStaffLabourHistoryRowsSecurityIn>((
  1382. Map<String, dynamic> e) =>
  1383. UkStaffLabourHistoryRowsSecurityIn.fromJson(e)).toList() as M;
  1384. }
  1385. if (<UkStaffLabourHistoryRowsSecurityOut>[] is M) {
  1386. return data.map<UkStaffLabourHistoryRowsSecurityOut>((
  1387. Map<String, dynamic> e) =>
  1388. UkStaffLabourHistoryRowsSecurityOut.fromJson(e)).toList() as M;
  1389. }
  1390. if (<UkStaffLabourHistoryRowsWorkIn>[] is M) {
  1391. return data.map<UkStaffLabourHistoryRowsWorkIn>((
  1392. Map<String, dynamic> e) => UkStaffLabourHistoryRowsWorkIn.fromJson(e))
  1393. .toList() as M;
  1394. }
  1395. if (<UkStaffLabourHistoryRowsWorkOut>[] is M) {
  1396. return data.map<UkStaffLabourHistoryRowsWorkOut>((
  1397. Map<String, dynamic> e) =>
  1398. UkStaffLabourHistoryRowsWorkOut.fromJson(e)).toList() as M;
  1399. }
  1400. if (<UkTemplateDetailEntity>[] is M) {
  1401. return data.map<UkTemplateDetailEntity>((Map<String, dynamic> e) =>
  1402. UkTemplateDetailEntity.fromJson(e)).toList() as M;
  1403. }
  1404. if (<UkTemplateDetailRow>[] is M) {
  1405. return data.map<UkTemplateDetailRow>((Map<String, dynamic> e) =>
  1406. UkTemplateDetailRow.fromJson(e)).toList() as M;
  1407. }
  1408. if (<UkTemplateDetailTitleList>[] is M) {
  1409. return data.map<UkTemplateDetailTitleList>((Map<String, dynamic> e) =>
  1410. UkTemplateDetailTitleList.fromJson(e)).toList() as M;
  1411. }
  1412. if (<UkTemplateDetailCertificateList>[] is M) {
  1413. return data.map<UkTemplateDetailCertificateList>((
  1414. Map<String, dynamic> e) =>
  1415. UkTemplateDetailCertificateList.fromJson(e)).toList() as M;
  1416. }
  1417. if (<UkTemplateDetailVehicleList>[] is M) {
  1418. return data.map<UkTemplateDetailVehicleList>((Map<String, dynamic> e) =>
  1419. UkTemplateDetailVehicleList.fromJson(e)).toList() as M;
  1420. }
  1421. if (<UkTemplateDetailIndexEntity>[] is M) {
  1422. return data.map<UkTemplateDetailIndexEntity>((Map<String, dynamic> e) =>
  1423. UkTemplateDetailIndexEntity.fromJson(e)).toList() as M;
  1424. }
  1425. if (<UkTemplateDetailIndexCertificateList>[] is M) {
  1426. return data.map<UkTemplateDetailIndexCertificateList>((
  1427. Map<String, dynamic> e) =>
  1428. UkTemplateDetailIndexCertificateList.fromJson(e)).toList() as M;
  1429. }
  1430. if (<UkTemplateDetailIndexVehicleList>[] is M) {
  1431. return data.map<UkTemplateDetailIndexVehicleList>((
  1432. Map<String, dynamic> e) =>
  1433. UkTemplateDetailIndexVehicleList.fromJson(e)).toList() as M;
  1434. }
  1435. if (<UkTemplateTitleOptionEntity>[] is M) {
  1436. return data.map<UkTemplateTitleOptionEntity>((Map<String, dynamic> e) =>
  1437. UkTemplateTitleOptionEntity.fromJson(e)).toList() as M;
  1438. }
  1439. if (<ServerTime>[] is M) {
  1440. return data.map<ServerTime>((Map<String, dynamic> e) =>
  1441. ServerTime.fromJson(e)).toList() as M;
  1442. }
  1443. debugPrint("$M not found");
  1444. return null;
  1445. }
  1446. static M? fromJsonAsT<M>(dynamic json) {
  1447. if (json is M) {
  1448. return json;
  1449. }
  1450. if (json is List) {
  1451. return _getListChildType<M>(
  1452. json.map((dynamic e) => e as Map<String, dynamic>).toList());
  1453. } else {
  1454. return jsonConvert.convert<M>(json);
  1455. }
  1456. }
  1457. }
  1458. class JsonConvertClassCollection {
  1459. Map<String, JsonConvertFunction> convertFuncMap = {
  1460. (AddEditReviseViewSGEntity).toString(): AddEditReviseViewSGEntity.fromJson,
  1461. (AgencyDetailEntity).toString(): AgencyDetailEntity.fromJson,
  1462. (AgencyDetailPivot).toString(): AgencyDetailPivot.fromJson,
  1463. (AgencyOptionEntity).toString(): AgencyOptionEntity.fromJson,
  1464. (AgencyTableEntity).toString(): AgencyTableEntity.fromJson,
  1465. (AgencyTableRows).toString(): AgencyTableRows.fromJson,
  1466. (AttendanceEntity).toString(): AttendanceEntity.fromJson,
  1467. (AttendanceList).toString(): AttendanceList.fromJson,
  1468. (AttendanceReviewEntity).toString(): AttendanceReviewEntity.fromJson,
  1469. (AttendanceReviewRows).toString(): AttendanceReviewRows.fromJson,
  1470. (CheckSuccessEntity).toString(): CheckSuccessEntity.fromJson,
  1471. (ContractDetailEntity).toString(): ContractDetailEntity.fromJson,
  1472. (ContractDetailRow).toString(): ContractDetailRow.fromJson,
  1473. (ContractOptionEntity).toString(): ContractOptionEntity.fromJson,
  1474. (ContractPositionAddOptionEntity)
  1475. .toString(): ContractPositionAddOptionEntity.fromJson,
  1476. (ContractPositionOptionEntity).toString(): ContractPositionOptionEntity
  1477. .fromJson,
  1478. (ContractPositionRateDetailEntity)
  1479. .toString(): ContractPositionRateDetailEntity.fromJson,
  1480. (ContractPositionRateSpecificOptionEntity)
  1481. .toString(): ContractPositionRateSpecificOptionEntity.fromJson,
  1482. (ContractPositionRateTableEntity)
  1483. .toString(): ContractPositionRateTableEntity.fromJson,
  1484. (ContractPositionRateTableRows).toString(): ContractPositionRateTableRows
  1485. .fromJson,
  1486. (ContractPositionTableEntity).toString(): ContractPositionTableEntity
  1487. .fromJson,
  1488. (ContractPositionTableRows).toString(): ContractPositionTableRows.fromJson,
  1489. (ContractTableEntity).toString(): ContractTableEntity.fromJson,
  1490. (ContractTableRows).toString(): ContractTableRows.fromJson,
  1491. (DeviceListEntity).toString(): DeviceListEntity.fromJson,
  1492. (DeviceListRows).toString(): DeviceListRows.fromJson,
  1493. (FianceReportEntity).toString(): FianceReportEntity.fromJson,
  1494. (FianceReportRateList).toString(): FianceReportRateList.fromJson,
  1495. (HotelInfoEntity).toString(): HotelInfoEntity.fromJson,
  1496. (HotelInfoMenus).toString(): HotelInfoMenus.fromJson,
  1497. (HotelInfoMenusChildren).toString(): HotelInfoMenusChildren.fromJson,
  1498. (IdNameEntity).toString(): IdNameEntity.fromJson,
  1499. (IndexOptionEntity).toString(): IndexOptionEntity.fromJson,
  1500. (JobAppliedEditIndexSGEntity).toString(): JobAppliedEditIndexSGEntity
  1501. .fromJson,
  1502. (JobAppliedEditIndexSGStatusList)
  1503. .toString(): JobAppliedEditIndexSGStatusList.fromJson,
  1504. (JobAppliedIndexSGEntity).toString(): JobAppliedIndexSGEntity.fromJson,
  1505. (JobAppliedIndexSGStatusList).toString(): JobAppliedIndexSGStatusList
  1506. .fromJson,
  1507. (JobAppliedListSGEntity).toString(): JobAppliedListSGEntity.fromJson,
  1508. (JobAppliedListSGRows).toString(): JobAppliedListSGRows.fromJson,
  1509. (JobAppliedListSGRowsCheck).toString(): JobAppliedListSGRowsCheck.fromJson,
  1510. (JobAppliedListSGRowsStatusList).toString(): JobAppliedListSGRowsStatusList
  1511. .fromJson,
  1512. (JobAppliedRemarkViewSGEntity).toString(): JobAppliedRemarkViewSGEntity
  1513. .fromJson,
  1514. (JobAppliedStaffSGEntity).toString(): JobAppliedStaffSGEntity.fromJson,
  1515. (JobAppliedStaffSGRows).toString(): JobAppliedStaffSGRows.fromJson,
  1516. (JobListAddStaffEntity).toString(): JobListAddStaffEntity.fromJson,
  1517. (JobListAddStaffResultList).toString(): JobListAddStaffResultList.fromJson,
  1518. (JobListAppliedEditEntity).toString(): JobListAppliedEditEntity.fromJson,
  1519. (JobListAppliedEditReasonList).toString(): JobListAppliedEditReasonList
  1520. .fromJson,
  1521. (JobListAppliedInfoEntity).toString(): JobListAppliedInfoEntity.fromJson,
  1522. (JobListAppliedStaffListEntity).toString(): JobListAppliedStaffListEntity
  1523. .fromJson,
  1524. (JobListAppliedStaffListRows).toString(): JobListAppliedStaffListRows
  1525. .fromJson,
  1526. (JobListAppliedStaffListRowsSecurityIn)
  1527. .toString(): JobListAppliedStaffListRowsSecurityIn.fromJson,
  1528. (JobListAppliedStaffListRowsSecurityOut)
  1529. .toString(): JobListAppliedStaffListRowsSecurityOut.fromJson,
  1530. (JobListAppliedStaffListRowsWorkIn)
  1531. .toString(): JobListAppliedStaffListRowsWorkIn.fromJson,
  1532. (JobListAppliedStaffListRowsWorkOut)
  1533. .toString(): JobListAppliedStaffListRowsWorkOut.fromJson,
  1534. (JobListAppliedStaffSearchEntity)
  1535. .toString(): JobListAppliedStaffSearchEntity.fromJson,
  1536. (JobListAppliedStaffSearchRows).toString(): JobListAppliedStaffSearchRows
  1537. .fromJson,
  1538. (JobListAppliedWorkFlowEntity).toString(): JobListAppliedWorkFlowEntity
  1539. .fromJson,
  1540. (JobListAppliedWorkFlowRecords).toString(): JobListAppliedWorkFlowRecords
  1541. .fromJson,
  1542. (JobListDetailEntity).toString(): JobListDetailEntity.fromJson,
  1543. (JobListDetailDepartmentList).toString(): JobListDetailDepartmentList
  1544. .fromJson,
  1545. (JobListERDetailEntity).toString(): JobListERDetailEntity.fromJson,
  1546. (JobListERDetailJob).toString(): JobListERDetailJob.fromJson,
  1547. (JobListEROptionEntity).toString(): JobListEROptionEntity.fromJson,
  1548. (JobListEROptionFilter).toString(): JobListEROptionFilter.fromJson,
  1549. (JobListEditIndexSGEntity).toString(): JobListEditIndexSGEntity.fromJson,
  1550. (JobListEditIndexOption).toString(): JobListEditIndexOption.fromJson,
  1551. (JobListEntity).toString(): JobListEntity.fromJson,
  1552. (JobListRows).toString(): JobListRows.fromJson,
  1553. (JobListIndexEntity).toString(): JobListIndexEntity.fromJson,
  1554. (JobListIndexDepartmentList).toString(): JobListIndexDepartmentList
  1555. .fromJson,
  1556. (JobListIndexStatusList).toString(): JobListIndexStatusList.fromJson,
  1557. (JobListIndexSGEntity).toString(): JobListIndexSGEntity.fromJson,
  1558. (JobListIndexSGOption).toString(): JobListIndexSGOption.fromJson,
  1559. (JobListRemarkViewEntity).toString(): JobListRemarkViewEntity.fromJson,
  1560. (JobListSGEntity).toString(): JobListSGEntity.fromJson,
  1561. (JobListSGRows).toString(): JobListSGRows.fromJson,
  1562. (JobTemplateEditIndexEntity).toString(): JobTemplateEditIndexEntity
  1563. .fromJson,
  1564. (JobTemplateEditIndexAgeList).toString(): JobTemplateEditIndexAgeList
  1565. .fromJson,
  1566. (JobTemplateEditIndexSexList).toString(): JobTemplateEditIndexSexList
  1567. .fromJson,
  1568. (JobTemplateEditIndexLanguageList)
  1569. .toString(): JobTemplateEditIndexLanguageList.fromJson,
  1570. (JobTemplateSGEntity).toString(): JobTemplateSGEntity.fromJson,
  1571. (JobTemplateSGRows).toString(): JobTemplateSGRows.fromJson,
  1572. (JobTitleEditIndexEntity).toString(): JobTitleEditIndexEntity.fromJson,
  1573. (JobTitleEditIndexTemplate).toString(): JobTitleEditIndexTemplate.fromJson,
  1574. (JobTitleSGEntity).toString(): JobTitleSGEntity.fromJson,
  1575. (JobTitleSGRows).toString(): JobTitleSGRows.fromJson,
  1576. (LabourListEREntity).toString(): LabourListEREntity.fromJson,
  1577. (LabourListERRows).toString(): LabourListERRows.fromJson,
  1578. (LabourReportEntity).toString(): LabourReportEntity.fromJson,
  1579. (LabourReportRows).toString(): LabourReportRows.fromJson,
  1580. (LabourReportTotal).toString(): LabourReportTotal.fromJson,
  1581. (LabourReportVNEntity).toString(): LabourReportVNEntity.fromJson,
  1582. (LabourReportVNRows).toString(): LabourReportVNRows.fromJson,
  1583. (LabourReportVNTotal).toString(): LabourReportVNTotal.fromJson,
  1584. (LabourRequestEREntity).toString(): LabourRequestEREntity.fromJson,
  1585. (LabourRequestERCountList).toString(): LabourRequestERCountList.fromJson,
  1586. (LabourRequestERSourceList).toString(): LabourRequestERSourceList.fromJson,
  1587. (LabourRequestERSourceListRequestList)
  1588. .toString(): LabourRequestERSourceListRequestList.fromJson,
  1589. (LabourRequestEROptionEntity).toString(): LabourRequestEROptionEntity
  1590. .fromJson,
  1591. (LabourRequestEditIndexEntity).toString(): LabourRequestEditIndexEntity
  1592. .fromJson,
  1593. (LabourRequestEditIndexTemplateList)
  1594. .toString(): LabourRequestEditIndexTemplateList.fromJson,
  1595. (LabourRequestEditIndexDepartmentList)
  1596. .toString(): LabourRequestEditIndexDepartmentList.fromJson,
  1597. (LabourRequestIndexEntity).toString(): LabourRequestIndexEntity.fromJson,
  1598. (LabourRequestIndexDepartmentList)
  1599. .toString(): LabourRequestIndexDepartmentList.fromJson,
  1600. (LabourRequestIndexStatusList).toString(): LabourRequestIndexStatusList
  1601. .fromJson,
  1602. (LabourRequestListEntity).toString(): LabourRequestListEntity.fromJson,
  1603. (LabourRequestListRows).toString(): LabourRequestListRows.fromJson,
  1604. (LabourRequestWorkFlowEntity).toString(): LabourRequestWorkFlowEntity
  1605. .fromJson,
  1606. (LabourRequestWorkFlowRecords).toString(): LabourRequestWorkFlowRecords
  1607. .fromJson,
  1608. (LabourReviewListEntity).toString(): LabourReviewListEntity.fromJson,
  1609. (LabourReviewListRows).toString(): LabourReviewListRows.fromJson,
  1610. (LabourReviewStatusEntity).toString(): LabourReviewStatusEntity.fromJson,
  1611. (LabourReviewStatusRecords).toString(): LabourReviewStatusRecords.fromJson,
  1612. (PositionTableEntity).toString(): PositionTableEntity.fromJson,
  1613. (PositionTableRows).toString(): PositionTableRows.fromJson,
  1614. (ReviseIndexSGEntity).toString(): ReviseIndexSGEntity.fromJson,
  1615. (ReviseIndexSGStatusList).toString(): ReviseIndexSGStatusList.fromJson,
  1616. (ReviseListSGEntity).toString(): ReviseListSGEntity.fromJson,
  1617. (ReviseListSGRows).toString(): ReviseListSGRows.fromJson,
  1618. (ReviseLogSGEntity).toString(): ReviseLogSGEntity.fromJson,
  1619. (ReviseLogSGRecords).toString(): ReviseLogSGRecords.fromJson,
  1620. (ReviseLogSGRecordsContent).toString(): ReviseLogSGRecordsContent.fromJson,
  1621. (ReviseLogSGRecordsOption).toString(): ReviseLogSGRecordsOption.fromJson,
  1622. (SGAttendanceReviewOptionEntity).toString(): SGAttendanceReviewOptionEntity
  1623. .fromJson,
  1624. (SGAttendanceReviewTableEntity).toString(): SGAttendanceReviewTableEntity
  1625. .fromJson,
  1626. (SGAttendanceReviewTableRows).toString(): SGAttendanceReviewTableRows
  1627. .fromJson,
  1628. (SGAttendanceReviewTableRowsCheck)
  1629. .toString(): SGAttendanceReviewTableRowsCheck.fromJson,
  1630. (SGAttendanceReviewWorkflowEntity)
  1631. .toString(): SGAttendanceReviewWorkflowEntity.fromJson,
  1632. (SGAttendanceReviewWorkflowRow).toString(): SGAttendanceReviewWorkflowRow
  1633. .fromJson,
  1634. (SGAttendanceReviewWorkflowRecords)
  1635. .toString(): SGAttendanceReviewWorkflowRecords.fromJson,
  1636. (SGDashboardEntity).toString(): SGDashboardEntity.fromJson,
  1637. (SGDashboardAgencyList).toString(): SGDashboardAgencyList.fromJson,
  1638. (SGDashboardAgencyListDays).toString(): SGDashboardAgencyListDays.fromJson,
  1639. (SGLabourRequestAddOptionEntity).toString(): SGLabourRequestAddOptionEntity
  1640. .fromJson,
  1641. (LabourRequestAgencyEntity).toString(): LabourRequestAgencyEntity.fromJson,
  1642. (SGLabourRequestDetailEntity).toString(): SGLabourRequestDetailEntity
  1643. .fromJson,
  1644. (SGLabourRequestDetailLabReq).toString(): SGLabourRequestDetailLabReq
  1645. .fromJson,
  1646. (SGLabourRequestOptionEntity).toString(): SGLabourRequestOptionEntity
  1647. .fromJson,
  1648. (SGLabourRequestTableEntity).toString(): SGLabourRequestTableEntity
  1649. .fromJson,
  1650. (SGLabourRequestTableRows).toString(): SGLabourRequestTableRows.fromJson,
  1651. (SGLabourRequestWorlFlowEntity).toString(): SGLabourRequestWorlFlowEntity
  1652. .fromJson,
  1653. (SGLabourRequestWorlFlowRow).toString(): SGLabourRequestWorlFlowRow
  1654. .fromJson,
  1655. (SGLabourRequestWorlFlowRecords).toString(): SGLabourRequestWorlFlowRecords
  1656. .fromJson,
  1657. (SGLabourReviewOptionEntity).toString(): SGLabourReviewOptionEntity
  1658. .fromJson,
  1659. (SGLabourReviewTableEntity).toString(): SGLabourReviewTableEntity.fromJson,
  1660. (SGLabourReviewTableRows).toString(): SGLabourReviewTableRows.fromJson,
  1661. (SignInSignOutEntity).toString(): SignInSignOutEntity.fromJson,
  1662. (SignInSignOutRows).toString(): SignInSignOutRows.fromJson,
  1663. (StaffDetailEntity).toString(): StaffDetailEntity.fromJson,
  1664. (StaffDetailSGEntity).toString(): StaffDetailSGEntity.fromJson,
  1665. (StaffDetailSGReviews).toString(): StaffDetailSGReviews.fromJson,
  1666. (StaffDetailSGReviewsReviews).toString(): StaffDetailSGReviewsReviews
  1667. .fromJson,
  1668. (StaffJobHistorySGEntity).toString(): StaffJobHistorySGEntity.fromJson,
  1669. (StaffJobHistorySGRows).toString(): StaffJobHistorySGRows.fromJson,
  1670. (StaffLabourHistoryEntity).toString(): StaffLabourHistoryEntity.fromJson,
  1671. (StaffLabourHistoryRows).toString(): StaffLabourHistoryRows.fromJson,
  1672. (StaffLabourHistoryRowsSecurityIn)
  1673. .toString(): StaffLabourHistoryRowsSecurityIn.fromJson,
  1674. (StaffLabourHistoryRowsSecurityOut)
  1675. .toString(): StaffLabourHistoryRowsSecurityOut.fromJson,
  1676. (StaffLabourHistoryRowsWorkIn).toString(): StaffLabourHistoryRowsWorkIn
  1677. .fromJson,
  1678. (StaffLabourHistoryRowsWorkOut).toString(): StaffLabourHistoryRowsWorkOut
  1679. .fromJson,
  1680. (StaffRemarkHistoryEntity).toString(): StaffRemarkHistoryEntity.fromJson,
  1681. (StaffRemarkHistoryRows).toString(): StaffRemarkHistoryRows.fromJson,
  1682. (StaffReportVNEntity).toString(): StaffReportVNEntity.fromJson,
  1683. (StaffRequestReportEntity).toString(): StaffRequestReportEntity.fromJson,
  1684. (StaffReviewHistorySGEntity).toString(): StaffReviewHistorySGEntity
  1685. .fromJson,
  1686. (StaffReviewHistorySGReviews).toString(): StaffReviewHistorySGReviews
  1687. .fromJson,
  1688. (SwitchProjectEntity).toString(): SwitchProjectEntity.fromJson,
  1689. (SwitchProjectUserList).toString(): SwitchProjectUserList.fromJson,
  1690. (THAppliedEditEntity).toString(): THAppliedEditEntity.fromJson,
  1691. (THAppliedEditApplied).toString(): THAppliedEditApplied.fromJson,
  1692. (THAppliedEmployeeEntity).toString(): THAppliedEmployeeEntity.fromJson,
  1693. (THAppliedEmployeeRows).toString(): THAppliedEmployeeRows.fromJson,
  1694. (THAppliedIndexEntity).toString(): THAppliedIndexEntity.fromJson,
  1695. (THAppliedIndexJob).toString(): THAppliedIndexJob.fromJson,
  1696. (THAppliedTableEntity).toString(): THAppliedTableEntity.fromJson,
  1697. (THAppliedTableRows).toString(): THAppliedTableRows.fromJson,
  1698. (THAppliedTableCheckInOut).toString(): THAppliedTableCheckInOut.fromJson,
  1699. (THEmployeeDetailEntity).toString(): THEmployeeDetailEntity.fromJson,
  1700. (THEmployeeDetailStaff).toString(): THEmployeeDetailStaff.fromJson,
  1701. (THEmployeeDetailReviews).toString(): THEmployeeDetailReviews.fromJson,
  1702. (THEmployeeRemarksEntity).toString(): THEmployeeRemarksEntity.fromJson,
  1703. (THEmployeeRemarksReviews).toString(): THEmployeeRemarksReviews.fromJson,
  1704. (THOAAttachmentEntity).toString(): THOAAttachmentEntity.fromJson,
  1705. (THOAAttachmentRows).toString(): THOAAttachmentRows.fromJson,
  1706. (THOALabourDetailEntity).toString(): THOALabourDetailEntity.fromJson,
  1707. (THOALabourDetailLabourRequest).toString(): THOALabourDetailLabourRequest
  1708. .fromJson,
  1709. (THOALabourReviewTableEntity).toString(): THOALabourReviewTableEntity
  1710. .fromJson,
  1711. (THOALabourReviewTableRows).toString(): THOALabourReviewTableRows.fromJson,
  1712. (THOALabourTableEntity).toString(): THOALabourTableEntity.fromJson,
  1713. (THOALabourTableRows).toString(): THOALabourTableRows.fromJson,
  1714. (THUploadFileEntity).toString(): THUploadFileEntity.fromJson,
  1715. (UKAttendanceEntity).toString(): UKAttendanceEntity.fromJson,
  1716. (UKAttendanceRows).toString(): UKAttendanceRows.fromJson,
  1717. (UKAttendanceInOut).toString(): UKAttendanceInOut.fromJson,
  1718. (UKReportAttendanceEntity).toString(): UKReportAttendanceEntity.fromJson,
  1719. (UKReportAttendanceRows).toString(): UKReportAttendanceRows.fromJson,
  1720. (UKReportLabourEntity).toString(): UKReportLabourEntity.fromJson,
  1721. (UKReportLabourRows).toString(): UKReportLabourRows.fromJson,
  1722. (UKReportWorkingHoursEntity).toString(): UKReportWorkingHoursEntity
  1723. .fromJson,
  1724. (UKReportWorkingHoursRows).toString(): UKReportWorkingHoursRows.fromJson,
  1725. (UKSecurityAttendanceEntity).toString(): UKSecurityAttendanceEntity
  1726. .fromJson,
  1727. (UKSecurityAttendanceRows).toString(): UKSecurityAttendanceRows.fromJson,
  1728. (UKSecurityInOut).toString(): UKSecurityInOut.fromJson,
  1729. (UKSecurityAttendanceOptionEntity)
  1730. .toString(): UKSecurityAttendanceOptionEntity.fromJson,
  1731. (UKSecurityAttendanceOptionFilter)
  1732. .toString(): UKSecurityAttendanceOptionFilter.fromJson,
  1733. (UKTemplateEntity).toString(): UKTemplateEntity.fromJson,
  1734. (UKTemplateRows).toString(): UKTemplateRows.fromJson,
  1735. (UkAttendanceReviewEntity).toString(): UkAttendanceReviewEntity.fromJson,
  1736. (UkAttendanceReviewRows).toString(): UkAttendanceReviewRows.fromJson,
  1737. (UkAttendanceReviewRemarkEntity).toString(): UkAttendanceReviewRemarkEntity
  1738. .fromJson,
  1739. (UkJobAppliedReviseAddDetailEntity)
  1740. .toString(): UkJobAppliedReviseAddDetailEntity.fromJson,
  1741. (UkJobAppliedReviseAddDetailApplied)
  1742. .toString(): UkJobAppliedReviseAddDetailApplied.fromJson,
  1743. (UkJobAppliedReviseEditDetailEntity)
  1744. .toString(): UkJobAppliedReviseEditDetailEntity.fromJson,
  1745. (UkJobAppliedReviseEditDetailApplied)
  1746. .toString(): UkJobAppliedReviseEditDetailApplied.fromJson,
  1747. (UkJobAppliedReviseEditDetailRevise)
  1748. .toString(): UkJobAppliedReviseEditDetailRevise.fromJson,
  1749. (UkJobAppliedReviseEditDetailReviseApplied)
  1750. .toString(): UkJobAppliedReviseEditDetailReviseApplied.fromJson,
  1751. (UkJobAppliedReviseInfoEntity).toString(): UkJobAppliedReviseInfoEntity
  1752. .fromJson,
  1753. (UkJobAppliedReviseInfoRows).toString(): UkJobAppliedReviseInfoRows
  1754. .fromJson,
  1755. (UkJobAppliedReviseLogEntity).toString(): UkJobAppliedReviseLogEntity
  1756. .fromJson,
  1757. (UkJobAppliedReviseLogRecords).toString(): UkJobAppliedReviseLogRecords
  1758. .fromJson,
  1759. (UkJobAppliedReviseLogRecordsContent)
  1760. .toString(): UkJobAppliedReviseLogRecordsContent.fromJson,
  1761. (UkJobAppliedReviseLogRecordsContentReviseHours)
  1762. .toString(): UkJobAppliedReviseLogRecordsContentReviseHours.fromJson,
  1763. (UkJobAppliedReviseLogRecordsContentStatus)
  1764. .toString(): UkJobAppliedReviseLogRecordsContentStatus.fromJson,
  1765. (UkJobAppliedReviseLogRecordsContentReason)
  1766. .toString(): UkJobAppliedReviseLogRecordsContentReason.fromJson,
  1767. (UkJobAppliedStaffListEntity).toString(): UkJobAppliedStaffListEntity
  1768. .fromJson,
  1769. (UkJobAppliedStaffListRows).toString(): UkJobAppliedStaffListRows.fromJson,
  1770. (UkJobAppliedStaffListRowsSecurityIn)
  1771. .toString(): UkJobAppliedStaffListRowsSecurityIn.fromJson,
  1772. (UkJobAppliedStaffListRowsSecurityOut)
  1773. .toString(): UkJobAppliedStaffListRowsSecurityOut.fromJson,
  1774. (UkJobAppliedStaffListRowsWorkIn)
  1775. .toString(): UkJobAppliedStaffListRowsWorkIn.fromJson,
  1776. (UkJobAppliedStaffListRowsWorkOut)
  1777. .toString(): UkJobAppliedStaffListRowsWorkOut.fromJson,
  1778. (UkJobTemplateDetailBySelectTitleEntity)
  1779. .toString(): UkJobTemplateDetailBySelectTitleEntity.fromJson,
  1780. (UkLabourRequestDetailEntity).toString(): UkLabourRequestDetailEntity
  1781. .fromJson,
  1782. (UkLabourRequestDetailLocationList)
  1783. .toString(): UkLabourRequestDetailLocationList.fromJson,
  1784. (UkLabourRequestDetailTemplateList)
  1785. .toString(): UkLabourRequestDetailTemplateList.fromJson,
  1786. (UkLabourRequestDetailDepartmentList)
  1787. .toString(): UkLabourRequestDetailDepartmentList.fromJson,
  1788. (UkLabourRequestDetailChargeList)
  1789. .toString(): UkLabourRequestDetailChargeList.fromJson,
  1790. (UkLabourRequestDetailEmploymentList)
  1791. .toString(): UkLabourRequestDetailEmploymentList.fromJson,
  1792. (UkLabourRequestPreselectAddstatffListEntity)
  1793. .toString(): UkLabourRequestPreselectAddstatffListEntity.fromJson,
  1794. (UkLabourRequestPreselectAddstatffListRows)
  1795. .toString(): UkLabourRequestPreselectAddstatffListRows.fromJson,
  1796. (UkLabourRequestPreselectedListEntity)
  1797. .toString(): UkLabourRequestPreselectedListEntity.fromJson,
  1798. (UkLabourRequestPreselectedListRows)
  1799. .toString(): UkLabourRequestPreselectedListRows.fromJson,
  1800. (UkLabourRequestReviewDetailEntity)
  1801. .toString(): UkLabourRequestReviewDetailEntity.fromJson,
  1802. (UkLabourRequestReviewDetailOrder)
  1803. .toString(): UkLabourRequestReviewDetailOrder.fromJson,
  1804. (UkLabourRequestReviewDetailOrderRequest)
  1805. .toString(): UkLabourRequestReviewDetailOrderRequest.fromJson,
  1806. (UkLabourRequestReviewDetailOrderRecords)
  1807. .toString(): UkLabourRequestReviewDetailOrderRecords.fromJson,
  1808. (UkLabourRequestReviewDetailRecords)
  1809. .toString(): UkLabourRequestReviewDetailRecords.fromJson,
  1810. (UkLabourRequestReviewListEntity)
  1811. .toString(): UkLabourRequestReviewListEntity.fromJson,
  1812. (UkLabourRequestReviewListRows).toString(): UkLabourRequestReviewListRows
  1813. .fromJson,
  1814. (UkLabourRequestTableEntity).toString(): UkLabourRequestTableEntity
  1815. .fromJson,
  1816. (UkLabourRequestTableRows).toString(): UkLabourRequestTableRows.fromJson,
  1817. (UkLabourReviewStatusEntity).toString(): UkLabourReviewStatusEntity
  1818. .fromJson,
  1819. (UkLabourReviewStatusRow).toString(): UkLabourReviewStatusRow.fromJson,
  1820. (UkLabourReviewStatusRecords).toString(): UkLabourReviewStatusRecords
  1821. .fromJson,
  1822. (UkReportCasualEntity).toString(): UkReportCasualEntity.fromJson,
  1823. (UkReportCasualRows).toString(): UkReportCasualRows.fromJson,
  1824. (UkReportCasualTotal).toString(): UkReportCasualTotal.fromJson,
  1825. (UkReportCasualPayEntity).toString(): UkReportCasualPayEntity.fromJson,
  1826. (UkReportCasualPayRows).toString(): UkReportCasualPayRows.fromJson,
  1827. (UkReportCasualPayTotal).toString(): UkReportCasualPayTotal.fromJson,
  1828. (UkReportOutletEntity).toString(): UkReportOutletEntity.fromJson,
  1829. (UkReportOutletRequestList).toString(): UkReportOutletRequestList.fromJson,
  1830. (UkStaffDetailEntity).toString(): UkStaffDetailEntity.fromJson,
  1831. (UkStaffDetailCertificates).toString(): UkStaffDetailCertificates.fromJson,
  1832. (UkStaffLabourHistoryEntity).toString(): UkStaffLabourHistoryEntity
  1833. .fromJson,
  1834. (UkStaffLabourHistoryRows).toString(): UkStaffLabourHistoryRows.fromJson,
  1835. (UkStaffLabourHistoryRowsSecurityIn)
  1836. .toString(): UkStaffLabourHistoryRowsSecurityIn.fromJson,
  1837. (UkStaffLabourHistoryRowsSecurityOut)
  1838. .toString(): UkStaffLabourHistoryRowsSecurityOut.fromJson,
  1839. (UkStaffLabourHistoryRowsWorkIn).toString(): UkStaffLabourHistoryRowsWorkIn
  1840. .fromJson,
  1841. (UkStaffLabourHistoryRowsWorkOut)
  1842. .toString(): UkStaffLabourHistoryRowsWorkOut.fromJson,
  1843. (UkTemplateDetailEntity).toString(): UkTemplateDetailEntity.fromJson,
  1844. (UkTemplateDetailRow).toString(): UkTemplateDetailRow.fromJson,
  1845. (UkTemplateDetailTitleList).toString(): UkTemplateDetailTitleList.fromJson,
  1846. (UkTemplateDetailCertificateList)
  1847. .toString(): UkTemplateDetailCertificateList.fromJson,
  1848. (UkTemplateDetailVehicleList).toString(): UkTemplateDetailVehicleList
  1849. .fromJson,
  1850. (UkTemplateDetailIndexEntity).toString(): UkTemplateDetailIndexEntity
  1851. .fromJson,
  1852. (UkTemplateDetailIndexCertificateList)
  1853. .toString(): UkTemplateDetailIndexCertificateList.fromJson,
  1854. (UkTemplateDetailIndexVehicleList)
  1855. .toString(): UkTemplateDetailIndexVehicleList.fromJson,
  1856. (UkTemplateTitleOptionEntity).toString(): UkTemplateTitleOptionEntity
  1857. .fromJson,
  1858. (ServerTime).toString(): ServerTime.fromJson,
  1859. };
  1860. bool containsKey(String type) {
  1861. return convertFuncMap.containsKey(type);
  1862. }
  1863. JsonConvertFunction? operator [](String key) {
  1864. return convertFuncMap[key];
  1865. }
  1866. }