json_convert_content.dart 64 KB

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