json_convert_content.dart 89 KB

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