json_convert_content.dart 57 KB

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