json_convert_content.dart 45 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804
  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_edit_index_s_g_entity.dart';
  40. import 'package:domain/entity/response/job_list_entity.dart';
  41. import 'package:domain/entity/response/job_list_index_entity.dart';
  42. import 'package:domain/entity/response/job_list_index_s_g_entity.dart';
  43. import 'package:domain/entity/response/job_list_remark_view_entity.dart';
  44. import 'package:domain/entity/response/job_list_s_g_entity.dart';
  45. import 'package:domain/entity/response/job_template_edit_index_entity.dart';
  46. import 'package:domain/entity/response/job_template_s_g_entity.dart';
  47. import 'package:domain/entity/response/job_title_edit_index_entity.dart';
  48. import 'package:domain/entity/response/job_title_s_g_entity.dart';
  49. import 'package:domain/entity/response/labour_report_entity.dart';
  50. import 'package:domain/entity/response/labour_report_v_n_entity.dart';
  51. import 'package:domain/entity/response/labour_request_edit_index_entity.dart';
  52. import 'package:domain/entity/response/labour_request_index_entity.dart';
  53. import 'package:domain/entity/response/labour_request_list_entity.dart';
  54. import 'package:domain/entity/response/labour_request_s_g_add_index_entity.dart';
  55. import 'package:domain/entity/response/labour_request_s_g_edit_index_entity.dart';
  56. import 'package:domain/entity/response/labour_request_s_g_entity.dart';
  57. import 'package:domain/entity/response/labour_request_s_g_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/staff_detail_entity.dart';
  66. import 'package:domain/entity/response/staff_detail_s_g_entity.dart';
  67. import 'package:domain/entity/response/staff_job_history_s_g_entity.dart';
  68. import 'package:domain/entity/response/staff_labour_history_entity.dart';
  69. import 'package:domain/entity/response/staff_remark_history_entity.dart';
  70. import 'package:domain/entity/response/staff_report_v_n_entity.dart';
  71. import 'package:domain/entity/response/staff_request_report_entity.dart';
  72. import 'package:domain/entity/response/staff_review_history_s_g_entity.dart';
  73. import 'package:domain/entity/server_time.dart';
  74. JsonConvert jsonConvert = JsonConvert();
  75. typedef JsonConvertFunction<T> = T Function(Map<String, dynamic> json);
  76. typedef EnumConvertFunction<T> = T Function(String value);
  77. typedef ConvertExceptionHandler = void Function(Object error, StackTrace stackTrace);
  78. extension MapSafeExt<K, V> on Map<K, V> {
  79. T? getOrNull<T>(K? key) {
  80. if (!containsKey(key) || key == null) {
  81. return null;
  82. } else {
  83. return this[key] as T?;
  84. }
  85. }
  86. }
  87. class JsonConvert {
  88. static ConvertExceptionHandler? onError;
  89. JsonConvertClassCollection convertFuncMap = JsonConvertClassCollection();
  90. /// 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
  91. /// https://flutter.cn/docs/development/tools/hot-reload
  92. /// class MyApp extends StatelessWidget {
  93. /// const MyApp({Key? key})
  94. /// : super(key: key);
  95. ///
  96. /// @override
  97. /// Widget build(BuildContext context) {
  98. /// jsonConvert.reassembleConvertFuncMap();
  99. /// return MaterialApp();
  100. /// }
  101. /// }
  102. void reassembleConvertFuncMap() {
  103. bool isReleaseMode = const bool.fromEnvironment('dart.vm.product');
  104. if (!isReleaseMode) {
  105. convertFuncMap = JsonConvertClassCollection();
  106. }
  107. }
  108. T? convert<T>(dynamic value, {EnumConvertFunction? enumConvert}) {
  109. if (value == null) {
  110. return null;
  111. }
  112. if (value is T) {
  113. return value;
  114. }
  115. try {
  116. return _asT<T>(value, enumConvert: enumConvert);
  117. } catch (e, stackTrace) {
  118. debugPrint('asT<$T> $e $stackTrace');
  119. if (onError != null) {
  120. onError!(e, stackTrace);
  121. }
  122. return null;
  123. }
  124. }
  125. List<T?>? convertList<T>(List<dynamic>? value, {EnumConvertFunction? enumConvert}) {
  126. if (value == null) {
  127. return null;
  128. }
  129. try {
  130. return value.map((dynamic e) => _asT<T>(e, enumConvert: enumConvert)).toList();
  131. } catch (e, stackTrace) {
  132. debugPrint('asT<$T> $e $stackTrace');
  133. if (onError != null) {
  134. onError!(e, stackTrace);
  135. }
  136. return <T>[];
  137. }
  138. }
  139. List<T>? convertListNotNull<T>(dynamic value, {EnumConvertFunction? enumConvert}) {
  140. if (value == null) {
  141. return null;
  142. }
  143. try {
  144. return (value as List<dynamic>).map((dynamic e) => _asT<T>(e, enumConvert: enumConvert)!).toList();
  145. } catch (e, stackTrace) {
  146. debugPrint('asT<$T> $e $stackTrace');
  147. if (onError != null) {
  148. onError!(e, stackTrace);
  149. }
  150. return <T>[];
  151. }
  152. }
  153. T? _asT<T extends Object?>(dynamic value,
  154. {EnumConvertFunction? enumConvert}) {
  155. final String type = T.toString();
  156. final String valueS = value.toString();
  157. if (enumConvert != null) {
  158. return enumConvert(valueS) as T;
  159. } else if (type == "String") {
  160. return valueS as T;
  161. } else if (type == "int") {
  162. final int? intValue = int.tryParse(valueS);
  163. if (intValue == null) {
  164. return double.tryParse(valueS)?.toInt() as T?;
  165. } else {
  166. return intValue as T;
  167. }
  168. } else if (type == "double") {
  169. return double.parse(valueS) as T;
  170. } else if (type == "DateTime") {
  171. return DateTime.parse(valueS) as T;
  172. } else if (type == "bool") {
  173. if (valueS == '0' || valueS == '1') {
  174. return (valueS == '1') as T;
  175. }
  176. return (valueS == 'true') as T;
  177. } else if (type == "Map" || type.startsWith("Map<")) {
  178. return value as T;
  179. } else {
  180. if (convertFuncMap.containsKey(type)) {
  181. if (value == null) {
  182. return null;
  183. }
  184. var covertFunc = convertFuncMap[type]!;
  185. if (covertFunc is Map<String, dynamic>) {
  186. return covertFunc(value as Map<String, dynamic>) as T;
  187. } else {
  188. return covertFunc(Map<String, dynamic>.from(value)) as T;
  189. }
  190. } else {
  191. throw UnimplementedError('$type unimplemented,you can try running the app again');
  192. }
  193. }
  194. }
  195. //list is returned by type
  196. static M? _getListChildType<M>(List<Map<String, dynamic>> data) {
  197. if (<AddEditReviseViewSGEntity>[] is M) {
  198. return data.map<AddEditReviseViewSGEntity>((Map<String, dynamic> e) => AddEditReviseViewSGEntity.fromJson(e)).toList() as M;
  199. }
  200. if (<AgencyDetailEntity>[] is M) {
  201. return data.map<AgencyDetailEntity>((Map<String, dynamic> e) => AgencyDetailEntity.fromJson(e)).toList() as M;
  202. }
  203. if (<AgencyDetailPivot>[] is M) {
  204. return data.map<AgencyDetailPivot>((Map<String, dynamic> e) => AgencyDetailPivot.fromJson(e)).toList() as M;
  205. }
  206. if (<AgencyOptionEntity>[] is M) {
  207. return data.map<AgencyOptionEntity>((Map<String, dynamic> e) => AgencyOptionEntity.fromJson(e)).toList() as M;
  208. }
  209. if (<AgencyTableEntity>[] is M) {
  210. return data.map<AgencyTableEntity>((Map<String, dynamic> e) => AgencyTableEntity.fromJson(e)).toList() as M;
  211. }
  212. if (<AgencyTableRows>[] is M) {
  213. return data.map<AgencyTableRows>((Map<String, dynamic> e) => AgencyTableRows.fromJson(e)).toList() as M;
  214. }
  215. if (<AttendanceEntity>[] is M) {
  216. return data.map<AttendanceEntity>((Map<String, dynamic> e) => AttendanceEntity.fromJson(e)).toList() as M;
  217. }
  218. if (<AttendanceList>[] is M) {
  219. return data.map<AttendanceList>((Map<String, dynamic> e) => AttendanceList.fromJson(e)).toList() as M;
  220. }
  221. if (<AttendanceReviewEntity>[] is M) {
  222. return data.map<AttendanceReviewEntity>((Map<String, dynamic> e) => AttendanceReviewEntity.fromJson(e)).toList() as M;
  223. }
  224. if (<AttendanceReviewRows>[] is M) {
  225. return data.map<AttendanceReviewRows>((Map<String, dynamic> e) => AttendanceReviewRows.fromJson(e)).toList() as M;
  226. }
  227. if (<CheckSuccessEntity>[] is M) {
  228. return data.map<CheckSuccessEntity>((Map<String, dynamic> e) => CheckSuccessEntity.fromJson(e)).toList() as M;
  229. }
  230. if (<ContractDetailEntity>[] is M) {
  231. return data.map<ContractDetailEntity>((Map<String, dynamic> e) => ContractDetailEntity.fromJson(e)).toList() as M;
  232. }
  233. if (<ContractDetailRow>[] is M) {
  234. return data.map<ContractDetailRow>((Map<String, dynamic> e) => ContractDetailRow.fromJson(e)).toList() as M;
  235. }
  236. if (<ContractOptionEntity>[] is M) {
  237. return data.map<ContractOptionEntity>((Map<String, dynamic> e) => ContractOptionEntity.fromJson(e)).toList() as M;
  238. }
  239. if (<ContractPositionAddOptionEntity>[] is M) {
  240. return data.map<ContractPositionAddOptionEntity>((Map<String, dynamic> e) => ContractPositionAddOptionEntity.fromJson(e)).toList() as M;
  241. }
  242. if (<ContractPositionOptionEntity>[] is M) {
  243. return data.map<ContractPositionOptionEntity>((Map<String, dynamic> e) => ContractPositionOptionEntity.fromJson(e)).toList() as M;
  244. }
  245. if (<ContractPositionRateDetailEntity>[] is M) {
  246. return data.map<ContractPositionRateDetailEntity>((Map<String, dynamic> e) => ContractPositionRateDetailEntity.fromJson(e)).toList() as M;
  247. }
  248. if (<ContractPositionRateSpecificOptionEntity>[] is M) {
  249. return data.map<ContractPositionRateSpecificOptionEntity>((Map<String, dynamic> e) => ContractPositionRateSpecificOptionEntity.fromJson(e)).toList() as M;
  250. }
  251. if (<ContractPositionRateTableEntity>[] is M) {
  252. return data.map<ContractPositionRateTableEntity>((Map<String, dynamic> e) => ContractPositionRateTableEntity.fromJson(e)).toList() as M;
  253. }
  254. if (<ContractPositionRateTableRows>[] is M) {
  255. return data.map<ContractPositionRateTableRows>((Map<String, dynamic> e) => ContractPositionRateTableRows.fromJson(e)).toList() as M;
  256. }
  257. if (<ContractPositionTableEntity>[] is M) {
  258. return data.map<ContractPositionTableEntity>((Map<String, dynamic> e) => ContractPositionTableEntity.fromJson(e)).toList() as M;
  259. }
  260. if (<ContractPositionTableRows>[] is M) {
  261. return data.map<ContractPositionTableRows>((Map<String, dynamic> e) => ContractPositionTableRows.fromJson(e)).toList() as M;
  262. }
  263. if (<ContractTableEntity>[] is M) {
  264. return data.map<ContractTableEntity>((Map<String, dynamic> e) => ContractTableEntity.fromJson(e)).toList() as M;
  265. }
  266. if (<ContractTableRows>[] is M) {
  267. return data.map<ContractTableRows>((Map<String, dynamic> e) => ContractTableRows.fromJson(e)).toList() as M;
  268. }
  269. if (<DeviceListEntity>[] is M) {
  270. return data.map<DeviceListEntity>((Map<String, dynamic> e) => DeviceListEntity.fromJson(e)).toList() as M;
  271. }
  272. if (<DeviceListRows>[] is M) {
  273. return data.map<DeviceListRows>((Map<String, dynamic> e) => DeviceListRows.fromJson(e)).toList() as M;
  274. }
  275. if (<FianceReportEntity>[] is M) {
  276. return data.map<FianceReportEntity>((Map<String, dynamic> e) => FianceReportEntity.fromJson(e)).toList() as M;
  277. }
  278. if (<FianceReportRateList>[] is M) {
  279. return data.map<FianceReportRateList>((Map<String, dynamic> e) => FianceReportRateList.fromJson(e)).toList() as M;
  280. }
  281. if (<HotelInfoEntity>[] is M) {
  282. return data.map<HotelInfoEntity>((Map<String, dynamic> e) => HotelInfoEntity.fromJson(e)).toList() as M;
  283. }
  284. if (<HotelInfoMenus>[] is M) {
  285. return data.map<HotelInfoMenus>((Map<String, dynamic> e) => HotelInfoMenus.fromJson(e)).toList() as M;
  286. }
  287. if (<HotelInfoMenusChildren>[] is M) {
  288. return data.map<HotelInfoMenusChildren>((Map<String, dynamic> e) => HotelInfoMenusChildren.fromJson(e)).toList() as M;
  289. }
  290. if (<IdNameEntity>[] is M) {
  291. return data.map<IdNameEntity>((Map<String, dynamic> e) => IdNameEntity.fromJson(e)).toList() as M;
  292. }
  293. if (<IndexOptionEntity>[] is M) {
  294. return data.map<IndexOptionEntity>((Map<String, dynamic> e) => IndexOptionEntity.fromJson(e)).toList() as M;
  295. }
  296. if (<JobAppliedEditIndexSGEntity>[] is M) {
  297. return data.map<JobAppliedEditIndexSGEntity>((Map<String, dynamic> e) => JobAppliedEditIndexSGEntity.fromJson(e)).toList() as M;
  298. }
  299. if (<JobAppliedEditIndexSGStatusList>[] is M) {
  300. return data.map<JobAppliedEditIndexSGStatusList>((Map<String, dynamic> e) => JobAppliedEditIndexSGStatusList.fromJson(e)).toList() as M;
  301. }
  302. if (<JobAppliedIndexSGEntity>[] is M) {
  303. return data.map<JobAppliedIndexSGEntity>((Map<String, dynamic> e) => JobAppliedIndexSGEntity.fromJson(e)).toList() as M;
  304. }
  305. if (<JobAppliedIndexSGStatusList>[] is M) {
  306. return data.map<JobAppliedIndexSGStatusList>((Map<String, dynamic> e) => JobAppliedIndexSGStatusList.fromJson(e)).toList() as M;
  307. }
  308. if (<JobAppliedListSGEntity>[] is M) {
  309. return data.map<JobAppliedListSGEntity>((Map<String, dynamic> e) => JobAppliedListSGEntity.fromJson(e)).toList() as M;
  310. }
  311. if (<JobAppliedListSGRows>[] is M) {
  312. return data.map<JobAppliedListSGRows>((Map<String, dynamic> e) => JobAppliedListSGRows.fromJson(e)).toList() as M;
  313. }
  314. if (<JobAppliedListSGRowsCheck>[] is M) {
  315. return data.map<JobAppliedListSGRowsCheck>((Map<String, dynamic> e) => JobAppliedListSGRowsCheck.fromJson(e)).toList() as M;
  316. }
  317. if (<JobAppliedListSGRowsStatusList>[] is M) {
  318. return data.map<JobAppliedListSGRowsStatusList>((Map<String, dynamic> e) => JobAppliedListSGRowsStatusList.fromJson(e)).toList() as M;
  319. }
  320. if (<JobAppliedRemarkViewSGEntity>[] is M) {
  321. return data.map<JobAppliedRemarkViewSGEntity>((Map<String, dynamic> e) => JobAppliedRemarkViewSGEntity.fromJson(e)).toList() as M;
  322. }
  323. if (<JobAppliedStaffSGEntity>[] is M) {
  324. return data.map<JobAppliedStaffSGEntity>((Map<String, dynamic> e) => JobAppliedStaffSGEntity.fromJson(e)).toList() as M;
  325. }
  326. if (<JobAppliedStaffSGRows>[] is M) {
  327. return data.map<JobAppliedStaffSGRows>((Map<String, dynamic> e) => JobAppliedStaffSGRows.fromJson(e)).toList() as M;
  328. }
  329. if (<JobListAddStaffEntity>[] is M) {
  330. return data.map<JobListAddStaffEntity>((Map<String, dynamic> e) => JobListAddStaffEntity.fromJson(e)).toList() as M;
  331. }
  332. if (<JobListAddStaffResultList>[] is M) {
  333. return data.map<JobListAddStaffResultList>((Map<String, dynamic> e) => JobListAddStaffResultList.fromJson(e)).toList() as M;
  334. }
  335. if (<JobListAppliedEditEntity>[] is M) {
  336. return data.map<JobListAppliedEditEntity>((Map<String, dynamic> e) => JobListAppliedEditEntity.fromJson(e)).toList() as M;
  337. }
  338. if (<JobListAppliedEditReasonList>[] is M) {
  339. return data.map<JobListAppliedEditReasonList>((Map<String, dynamic> e) => JobListAppliedEditReasonList.fromJson(e)).toList() as M;
  340. }
  341. if (<JobListAppliedInfoEntity>[] is M) {
  342. return data.map<JobListAppliedInfoEntity>((Map<String, dynamic> e) => JobListAppliedInfoEntity.fromJson(e)).toList() as M;
  343. }
  344. if (<JobListAppliedStaffListEntity>[] is M) {
  345. return data.map<JobListAppliedStaffListEntity>((Map<String, dynamic> e) => JobListAppliedStaffListEntity.fromJson(e)).toList() as M;
  346. }
  347. if (<JobListAppliedStaffListRows>[] is M) {
  348. return data.map<JobListAppliedStaffListRows>((Map<String, dynamic> e) => JobListAppliedStaffListRows.fromJson(e)).toList() as M;
  349. }
  350. if (<JobListAppliedStaffListRowsSecurityIn>[] is M) {
  351. return data.map<JobListAppliedStaffListRowsSecurityIn>((Map<String, dynamic> e) => JobListAppliedStaffListRowsSecurityIn.fromJson(e)).toList() as M;
  352. }
  353. if (<JobListAppliedStaffListRowsSecurityOut>[] is M) {
  354. return data.map<JobListAppliedStaffListRowsSecurityOut>((Map<String, dynamic> e) => JobListAppliedStaffListRowsSecurityOut.fromJson(e)).toList() as M;
  355. }
  356. if (<JobListAppliedStaffListRowsWorkIn>[] is M) {
  357. return data.map<JobListAppliedStaffListRowsWorkIn>((Map<String, dynamic> e) => JobListAppliedStaffListRowsWorkIn.fromJson(e)).toList() as M;
  358. }
  359. if (<JobListAppliedStaffListRowsWorkOut>[] is M) {
  360. return data.map<JobListAppliedStaffListRowsWorkOut>((Map<String, dynamic> e) => JobListAppliedStaffListRowsWorkOut.fromJson(e)).toList() as M;
  361. }
  362. if (<JobListAppliedStaffSearchEntity>[] is M) {
  363. return data.map<JobListAppliedStaffSearchEntity>((Map<String, dynamic> e) => JobListAppliedStaffSearchEntity.fromJson(e)).toList() as M;
  364. }
  365. if (<JobListAppliedStaffSearchRows>[] is M) {
  366. return data.map<JobListAppliedStaffSearchRows>((Map<String, dynamic> e) => JobListAppliedStaffSearchRows.fromJson(e)).toList() as M;
  367. }
  368. if (<JobListAppliedWorkFlowEntity>[] is M) {
  369. return data.map<JobListAppliedWorkFlowEntity>((Map<String, dynamic> e) => JobListAppliedWorkFlowEntity.fromJson(e)).toList() as M;
  370. }
  371. if (<JobListAppliedWorkFlowRecords>[] is M) {
  372. return data.map<JobListAppliedWorkFlowRecords>((Map<String, dynamic> e) => JobListAppliedWorkFlowRecords.fromJson(e)).toList() as M;
  373. }
  374. if (<JobListDetailEntity>[] is M) {
  375. return data.map<JobListDetailEntity>((Map<String, dynamic> e) => JobListDetailEntity.fromJson(e)).toList() as M;
  376. }
  377. if (<JobListDetailDepartmentList>[] is M) {
  378. return data.map<JobListDetailDepartmentList>((Map<String, dynamic> e) => JobListDetailDepartmentList.fromJson(e)).toList() as M;
  379. }
  380. if (<JobListEditIndexSGEntity>[] is M) {
  381. return data.map<JobListEditIndexSGEntity>((Map<String, dynamic> e) => JobListEditIndexSGEntity.fromJson(e)).toList() as M;
  382. }
  383. if (<JobListEditIndexOption>[] is M) {
  384. return data.map<JobListEditIndexOption>((Map<String, dynamic> e) => JobListEditIndexOption.fromJson(e)).toList() as M;
  385. }
  386. if (<JobListEntity>[] is M) {
  387. return data.map<JobListEntity>((Map<String, dynamic> e) => JobListEntity.fromJson(e)).toList() as M;
  388. }
  389. if (<JobListRows>[] is M) {
  390. return data.map<JobListRows>((Map<String, dynamic> e) => JobListRows.fromJson(e)).toList() as M;
  391. }
  392. if (<JobListIndexEntity>[] is M) {
  393. return data.map<JobListIndexEntity>((Map<String, dynamic> e) => JobListIndexEntity.fromJson(e)).toList() as M;
  394. }
  395. if (<JobListIndexDepartmentList>[] is M) {
  396. return data.map<JobListIndexDepartmentList>((Map<String, dynamic> e) => JobListIndexDepartmentList.fromJson(e)).toList() as M;
  397. }
  398. if (<JobListIndexStatusList>[] is M) {
  399. return data.map<JobListIndexStatusList>((Map<String, dynamic> e) => JobListIndexStatusList.fromJson(e)).toList() as M;
  400. }
  401. if (<JobListIndexSGEntity>[] is M) {
  402. return data.map<JobListIndexSGEntity>((Map<String, dynamic> e) => JobListIndexSGEntity.fromJson(e)).toList() as M;
  403. }
  404. if (<JobListIndexSGOption>[] is M) {
  405. return data.map<JobListIndexSGOption>((Map<String, dynamic> e) => JobListIndexSGOption.fromJson(e)).toList() as M;
  406. }
  407. if (<JobListRemarkViewEntity>[] is M) {
  408. return data.map<JobListRemarkViewEntity>((Map<String, dynamic> e) => JobListRemarkViewEntity.fromJson(e)).toList() as M;
  409. }
  410. if (<JobListSGEntity>[] is M) {
  411. return data.map<JobListSGEntity>((Map<String, dynamic> e) => JobListSGEntity.fromJson(e)).toList() as M;
  412. }
  413. if (<JobListSGRows>[] is M) {
  414. return data.map<JobListSGRows>((Map<String, dynamic> e) => JobListSGRows.fromJson(e)).toList() as M;
  415. }
  416. if (<JobTemplateEditIndexEntity>[] is M) {
  417. return data.map<JobTemplateEditIndexEntity>((Map<String, dynamic> e) => JobTemplateEditIndexEntity.fromJson(e)).toList() as M;
  418. }
  419. if (<JobTemplateEditIndexAgeList>[] is M) {
  420. return data.map<JobTemplateEditIndexAgeList>((Map<String, dynamic> e) => JobTemplateEditIndexAgeList.fromJson(e)).toList() as M;
  421. }
  422. if (<JobTemplateEditIndexSexList>[] is M) {
  423. return data.map<JobTemplateEditIndexSexList>((Map<String, dynamic> e) => JobTemplateEditIndexSexList.fromJson(e)).toList() as M;
  424. }
  425. if (<JobTemplateEditIndexLanguageList>[] is M) {
  426. return data.map<JobTemplateEditIndexLanguageList>((Map<String, dynamic> e) => JobTemplateEditIndexLanguageList.fromJson(e)).toList() as M;
  427. }
  428. if (<JobTemplateSGEntity>[] is M) {
  429. return data.map<JobTemplateSGEntity>((Map<String, dynamic> e) => JobTemplateSGEntity.fromJson(e)).toList() as M;
  430. }
  431. if (<JobTemplateSGRows>[] is M) {
  432. return data.map<JobTemplateSGRows>((Map<String, dynamic> e) => JobTemplateSGRows.fromJson(e)).toList() as M;
  433. }
  434. if (<JobTitleEditIndexEntity>[] is M) {
  435. return data.map<JobTitleEditIndexEntity>((Map<String, dynamic> e) => JobTitleEditIndexEntity.fromJson(e)).toList() as M;
  436. }
  437. if (<JobTitleEditIndexTemplate>[] is M) {
  438. return data.map<JobTitleEditIndexTemplate>((Map<String, dynamic> e) => JobTitleEditIndexTemplate.fromJson(e)).toList() as M;
  439. }
  440. if (<JobTitleSGEntity>[] is M) {
  441. return data.map<JobTitleSGEntity>((Map<String, dynamic> e) => JobTitleSGEntity.fromJson(e)).toList() as M;
  442. }
  443. if (<JobTitleSGRows>[] is M) {
  444. return data.map<JobTitleSGRows>((Map<String, dynamic> e) => JobTitleSGRows.fromJson(e)).toList() as M;
  445. }
  446. if (<LabourReportEntity>[] is M) {
  447. return data.map<LabourReportEntity>((Map<String, dynamic> e) => LabourReportEntity.fromJson(e)).toList() as M;
  448. }
  449. if (<LabourReportRows>[] is M) {
  450. return data.map<LabourReportRows>((Map<String, dynamic> e) => LabourReportRows.fromJson(e)).toList() as M;
  451. }
  452. if (<LabourReportTotal>[] is M) {
  453. return data.map<LabourReportTotal>((Map<String, dynamic> e) => LabourReportTotal.fromJson(e)).toList() as M;
  454. }
  455. if (<LabourReportVNEntity>[] is M) {
  456. return data.map<LabourReportVNEntity>((Map<String, dynamic> e) => LabourReportVNEntity.fromJson(e)).toList() as M;
  457. }
  458. if (<LabourReportVNRows>[] is M) {
  459. return data.map<LabourReportVNRows>((Map<String, dynamic> e) => LabourReportVNRows.fromJson(e)).toList() as M;
  460. }
  461. if (<LabourReportVNTotal>[] is M) {
  462. return data.map<LabourReportVNTotal>((Map<String, dynamic> e) => LabourReportVNTotal.fromJson(e)).toList() as M;
  463. }
  464. if (<LabourRequestEditIndexEntity>[] is M) {
  465. return data.map<LabourRequestEditIndexEntity>((Map<String, dynamic> e) => LabourRequestEditIndexEntity.fromJson(e)).toList() as M;
  466. }
  467. if (<LabourRequestEditIndexTemplateList>[] is M) {
  468. return data.map<LabourRequestEditIndexTemplateList>((Map<String, dynamic> e) => LabourRequestEditIndexTemplateList.fromJson(e)).toList() as M;
  469. }
  470. if (<LabourRequestEditIndexDepartmentList>[] is M) {
  471. return data.map<LabourRequestEditIndexDepartmentList>((Map<String, dynamic> e) => LabourRequestEditIndexDepartmentList.fromJson(e)).toList() as M;
  472. }
  473. if (<LabourRequestIndexEntity>[] is M) {
  474. return data.map<LabourRequestIndexEntity>((Map<String, dynamic> e) => LabourRequestIndexEntity.fromJson(e)).toList() as M;
  475. }
  476. if (<LabourRequestIndexDepartmentList>[] is M) {
  477. return data.map<LabourRequestIndexDepartmentList>((Map<String, dynamic> e) => LabourRequestIndexDepartmentList.fromJson(e)).toList() as M;
  478. }
  479. if (<LabourRequestIndexStatusList>[] is M) {
  480. return data.map<LabourRequestIndexStatusList>((Map<String, dynamic> e) => LabourRequestIndexStatusList.fromJson(e)).toList() as M;
  481. }
  482. if (<LabourRequestListEntity>[] is M) {
  483. return data.map<LabourRequestListEntity>((Map<String, dynamic> e) => LabourRequestListEntity.fromJson(e)).toList() as M;
  484. }
  485. if (<LabourRequestListRows>[] is M) {
  486. return data.map<LabourRequestListRows>((Map<String, dynamic> e) => LabourRequestListRows.fromJson(e)).toList() as M;
  487. }
  488. if (<LabourRequestSGAddIndexEntity>[] is M) {
  489. return data.map<LabourRequestSGAddIndexEntity>((Map<String, dynamic> e) => LabourRequestSGAddIndexEntity.fromJson(e)).toList() as M;
  490. }
  491. if (<LabourRequestSGAddIndexOption>[] is M) {
  492. return data.map<LabourRequestSGAddIndexOption>((Map<String, dynamic> e) => LabourRequestSGAddIndexOption.fromJson(e)).toList() as M;
  493. }
  494. if (<LabourRequestSGEditIndexEntity>[] is M) {
  495. return data.map<LabourRequestSGEditIndexEntity>((Map<String, dynamic> e) => LabourRequestSGEditIndexEntity.fromJson(e)).toList() as M;
  496. }
  497. if (<LabourRequestSGEditIndexJob>[] is M) {
  498. return data.map<LabourRequestSGEditIndexJob>((Map<String, dynamic> e) => LabourRequestSGEditIndexJob.fromJson(e)).toList() as M;
  499. }
  500. if (<LabourRequestSGEditSelected>[] is M) {
  501. return data.map<LabourRequestSGEditSelected>((Map<String, dynamic> e) => LabourRequestSGEditSelected.fromJson(e)).toList() as M;
  502. }
  503. if (<LabourRequestSGEditIndexChecked>[] is M) {
  504. return data.map<LabourRequestSGEditIndexChecked>((Map<String, dynamic> e) => LabourRequestSGEditIndexChecked.fromJson(e)).toList() as M;
  505. }
  506. if (<LabourRequestSGEntity>[] is M) {
  507. return data.map<LabourRequestSGEntity>((Map<String, dynamic> e) => LabourRequestSGEntity.fromJson(e)).toList() as M;
  508. }
  509. if (<LabourRequestSGCountList>[] is M) {
  510. return data.map<LabourRequestSGCountList>((Map<String, dynamic> e) => LabourRequestSGCountList.fromJson(e)).toList() as M;
  511. }
  512. if (<LabourRequestSGListEntity>[] is M) {
  513. return data.map<LabourRequestSGListEntity>((Map<String, dynamic> e) => LabourRequestSGListEntity.fromJson(e)).toList() as M;
  514. }
  515. if (<LabourRequestSGListRows>[] is M) {
  516. return data.map<LabourRequestSGListRows>((Map<String, dynamic> e) => LabourRequestSGListRows.fromJson(e)).toList() as M;
  517. }
  518. if (<LabourRequestWorkFlowEntity>[] is M) {
  519. return data.map<LabourRequestWorkFlowEntity>((Map<String, dynamic> e) => LabourRequestWorkFlowEntity.fromJson(e)).toList() as M;
  520. }
  521. if (<LabourRequestWorkFlowRecords>[] is M) {
  522. return data.map<LabourRequestWorkFlowRecords>((Map<String, dynamic> e) => LabourRequestWorkFlowRecords.fromJson(e)).toList() as M;
  523. }
  524. if (<LabourReviewListEntity>[] is M) {
  525. return data.map<LabourReviewListEntity>((Map<String, dynamic> e) => LabourReviewListEntity.fromJson(e)).toList() as M;
  526. }
  527. if (<LabourReviewListRows>[] is M) {
  528. return data.map<LabourReviewListRows>((Map<String, dynamic> e) => LabourReviewListRows.fromJson(e)).toList() as M;
  529. }
  530. if (<LabourReviewStatusEntity>[] is M) {
  531. return data.map<LabourReviewStatusEntity>((Map<String, dynamic> e) => LabourReviewStatusEntity.fromJson(e)).toList() as M;
  532. }
  533. if (<LabourReviewStatusRecords>[] is M) {
  534. return data.map<LabourReviewStatusRecords>((Map<String, dynamic> e) => LabourReviewStatusRecords.fromJson(e)).toList() as M;
  535. }
  536. if (<PositionTableEntity>[] is M) {
  537. return data.map<PositionTableEntity>((Map<String, dynamic> e) => PositionTableEntity.fromJson(e)).toList() as M;
  538. }
  539. if (<PositionTableRows>[] is M) {
  540. return data.map<PositionTableRows>((Map<String, dynamic> e) => PositionTableRows.fromJson(e)).toList() as M;
  541. }
  542. if (<ReviseIndexSGEntity>[] is M) {
  543. return data.map<ReviseIndexSGEntity>((Map<String, dynamic> e) => ReviseIndexSGEntity.fromJson(e)).toList() as M;
  544. }
  545. if (<ReviseIndexSGStatusList>[] is M) {
  546. return data.map<ReviseIndexSGStatusList>((Map<String, dynamic> e) => ReviseIndexSGStatusList.fromJson(e)).toList() as M;
  547. }
  548. if (<ReviseListSGEntity>[] is M) {
  549. return data.map<ReviseListSGEntity>((Map<String, dynamic> e) => ReviseListSGEntity.fromJson(e)).toList() as M;
  550. }
  551. if (<ReviseListSGRows>[] is M) {
  552. return data.map<ReviseListSGRows>((Map<String, dynamic> e) => ReviseListSGRows.fromJson(e)).toList() as M;
  553. }
  554. if (<ReviseLogSGEntity>[] is M) {
  555. return data.map<ReviseLogSGEntity>((Map<String, dynamic> e) => ReviseLogSGEntity.fromJson(e)).toList() as M;
  556. }
  557. if (<ReviseLogSGRecords>[] is M) {
  558. return data.map<ReviseLogSGRecords>((Map<String, dynamic> e) => ReviseLogSGRecords.fromJson(e)).toList() as M;
  559. }
  560. if (<ReviseLogSGRecordsContent>[] is M) {
  561. return data.map<ReviseLogSGRecordsContent>((Map<String, dynamic> e) => ReviseLogSGRecordsContent.fromJson(e)).toList() as M;
  562. }
  563. if (<ReviseLogSGRecordsOption>[] is M) {
  564. return data.map<ReviseLogSGRecordsOption>((Map<String, dynamic> e) => ReviseLogSGRecordsOption.fromJson(e)).toList() as M;
  565. }
  566. if (<StaffDetailEntity>[] is M) {
  567. return data.map<StaffDetailEntity>((Map<String, dynamic> e) => StaffDetailEntity.fromJson(e)).toList() as M;
  568. }
  569. if (<StaffDetailSGEntity>[] is M) {
  570. return data.map<StaffDetailSGEntity>((Map<String, dynamic> e) => StaffDetailSGEntity.fromJson(e)).toList() as M;
  571. }
  572. if (<StaffDetailSGReviews>[] is M) {
  573. return data.map<StaffDetailSGReviews>((Map<String, dynamic> e) => StaffDetailSGReviews.fromJson(e)).toList() as M;
  574. }
  575. if (<StaffDetailSGReviewsReviews>[] is M) {
  576. return data.map<StaffDetailSGReviewsReviews>((Map<String, dynamic> e) => StaffDetailSGReviewsReviews.fromJson(e)).toList() as M;
  577. }
  578. if (<StaffJobHistorySGEntity>[] is M) {
  579. return data.map<StaffJobHistorySGEntity>((Map<String, dynamic> e) => StaffJobHistorySGEntity.fromJson(e)).toList() as M;
  580. }
  581. if (<StaffJobHistorySGRows>[] is M) {
  582. return data.map<StaffJobHistorySGRows>((Map<String, dynamic> e) => StaffJobHistorySGRows.fromJson(e)).toList() as M;
  583. }
  584. if (<StaffLabourHistoryEntity>[] is M) {
  585. return data.map<StaffLabourHistoryEntity>((Map<String, dynamic> e) => StaffLabourHistoryEntity.fromJson(e)).toList() as M;
  586. }
  587. if (<StaffLabourHistoryRows>[] is M) {
  588. return data.map<StaffLabourHistoryRows>((Map<String, dynamic> e) => StaffLabourHistoryRows.fromJson(e)).toList() as M;
  589. }
  590. if (<StaffLabourHistoryRowsSecurityIn>[] is M) {
  591. return data.map<StaffLabourHistoryRowsSecurityIn>((Map<String, dynamic> e) => StaffLabourHistoryRowsSecurityIn.fromJson(e)).toList() as M;
  592. }
  593. if (<StaffLabourHistoryRowsSecurityOut>[] is M) {
  594. return data.map<StaffLabourHistoryRowsSecurityOut>((Map<String, dynamic> e) => StaffLabourHistoryRowsSecurityOut.fromJson(e)).toList() as M;
  595. }
  596. if (<StaffLabourHistoryRowsWorkIn>[] is M) {
  597. return data.map<StaffLabourHistoryRowsWorkIn>((Map<String, dynamic> e) => StaffLabourHistoryRowsWorkIn.fromJson(e)).toList() as M;
  598. }
  599. if (<StaffLabourHistoryRowsWorkOut>[] is M) {
  600. return data.map<StaffLabourHistoryRowsWorkOut>((Map<String, dynamic> e) => StaffLabourHistoryRowsWorkOut.fromJson(e)).toList() as M;
  601. }
  602. if (<StaffRemarkHistoryEntity>[] is M) {
  603. return data.map<StaffRemarkHistoryEntity>((Map<String, dynamic> e) => StaffRemarkHistoryEntity.fromJson(e)).toList() as M;
  604. }
  605. if (<StaffRemarkHistoryRows>[] is M) {
  606. return data.map<StaffRemarkHistoryRows>((Map<String, dynamic> e) => StaffRemarkHistoryRows.fromJson(e)).toList() as M;
  607. }
  608. if (<StaffReportVNEntity>[] is M) {
  609. return data.map<StaffReportVNEntity>((Map<String, dynamic> e) => StaffReportVNEntity.fromJson(e)).toList() as M;
  610. }
  611. if (<StaffRequestReportEntity>[] is M) {
  612. return data.map<StaffRequestReportEntity>((Map<String, dynamic> e) => StaffRequestReportEntity.fromJson(e)).toList() as M;
  613. }
  614. if (<StaffReviewHistorySGEntity>[] is M) {
  615. return data.map<StaffReviewHistorySGEntity>((Map<String, dynamic> e) => StaffReviewHistorySGEntity.fromJson(e)).toList() as M;
  616. }
  617. if (<StaffReviewHistorySGReviews>[] is M) {
  618. return data.map<StaffReviewHistorySGReviews>((Map<String, dynamic> e) => StaffReviewHistorySGReviews.fromJson(e)).toList() as M;
  619. }
  620. if (<ServerTime>[] is M) {
  621. return data.map<ServerTime>((Map<String, dynamic> e) => ServerTime.fromJson(e)).toList() as M;
  622. }
  623. debugPrint("$M not found");
  624. return null;
  625. }
  626. static M? fromJsonAsT<M>(dynamic json) {
  627. if (json is M) {
  628. return json;
  629. }
  630. if (json is List) {
  631. return _getListChildType<M>(json.map((dynamic e) => e as Map<String, dynamic>).toList());
  632. } else {
  633. return jsonConvert.convert<M>(json);
  634. }
  635. }
  636. }
  637. class JsonConvertClassCollection {
  638. Map<String, JsonConvertFunction> convertFuncMap = {
  639. (AddEditReviseViewSGEntity).toString(): AddEditReviseViewSGEntity.fromJson,
  640. (AgencyDetailEntity).toString(): AgencyDetailEntity.fromJson,
  641. (AgencyDetailPivot).toString(): AgencyDetailPivot.fromJson,
  642. (AgencyOptionEntity).toString(): AgencyOptionEntity.fromJson,
  643. (AgencyTableEntity).toString(): AgencyTableEntity.fromJson,
  644. (AgencyTableRows).toString(): AgencyTableRows.fromJson,
  645. (AttendanceEntity).toString(): AttendanceEntity.fromJson,
  646. (AttendanceList).toString(): AttendanceList.fromJson,
  647. (AttendanceReviewEntity).toString(): AttendanceReviewEntity.fromJson,
  648. (AttendanceReviewRows).toString(): AttendanceReviewRows.fromJson,
  649. (CheckSuccessEntity).toString(): CheckSuccessEntity.fromJson,
  650. (ContractDetailEntity).toString(): ContractDetailEntity.fromJson,
  651. (ContractDetailRow).toString(): ContractDetailRow.fromJson,
  652. (ContractOptionEntity).toString(): ContractOptionEntity.fromJson,
  653. (ContractPositionAddOptionEntity).toString(): ContractPositionAddOptionEntity.fromJson,
  654. (ContractPositionOptionEntity).toString(): ContractPositionOptionEntity.fromJson,
  655. (ContractPositionRateDetailEntity).toString(): ContractPositionRateDetailEntity.fromJson,
  656. (ContractPositionRateSpecificOptionEntity).toString(): ContractPositionRateSpecificOptionEntity.fromJson,
  657. (ContractPositionRateTableEntity).toString(): ContractPositionRateTableEntity.fromJson,
  658. (ContractPositionRateTableRows).toString(): ContractPositionRateTableRows.fromJson,
  659. (ContractPositionTableEntity).toString(): ContractPositionTableEntity.fromJson,
  660. (ContractPositionTableRows).toString(): ContractPositionTableRows.fromJson,
  661. (ContractTableEntity).toString(): ContractTableEntity.fromJson,
  662. (ContractTableRows).toString(): ContractTableRows.fromJson,
  663. (DeviceListEntity).toString(): DeviceListEntity.fromJson,
  664. (DeviceListRows).toString(): DeviceListRows.fromJson,
  665. (FianceReportEntity).toString(): FianceReportEntity.fromJson,
  666. (FianceReportRateList).toString(): FianceReportRateList.fromJson,
  667. (HotelInfoEntity).toString(): HotelInfoEntity.fromJson,
  668. (HotelInfoMenus).toString(): HotelInfoMenus.fromJson,
  669. (HotelInfoMenusChildren).toString(): HotelInfoMenusChildren.fromJson,
  670. (IdNameEntity).toString(): IdNameEntity.fromJson,
  671. (IndexOptionEntity).toString(): IndexOptionEntity.fromJson,
  672. (JobAppliedEditIndexSGEntity).toString(): JobAppliedEditIndexSGEntity.fromJson,
  673. (JobAppliedEditIndexSGStatusList).toString(): JobAppliedEditIndexSGStatusList.fromJson,
  674. (JobAppliedIndexSGEntity).toString(): JobAppliedIndexSGEntity.fromJson,
  675. (JobAppliedIndexSGStatusList).toString(): JobAppliedIndexSGStatusList.fromJson,
  676. (JobAppliedListSGEntity).toString(): JobAppliedListSGEntity.fromJson,
  677. (JobAppliedListSGRows).toString(): JobAppliedListSGRows.fromJson,
  678. (JobAppliedListSGRowsCheck).toString(): JobAppliedListSGRowsCheck.fromJson,
  679. (JobAppliedListSGRowsStatusList).toString(): JobAppliedListSGRowsStatusList.fromJson,
  680. (JobAppliedRemarkViewSGEntity).toString(): JobAppliedRemarkViewSGEntity.fromJson,
  681. (JobAppliedStaffSGEntity).toString(): JobAppliedStaffSGEntity.fromJson,
  682. (JobAppliedStaffSGRows).toString(): JobAppliedStaffSGRows.fromJson,
  683. (JobListAddStaffEntity).toString(): JobListAddStaffEntity.fromJson,
  684. (JobListAddStaffResultList).toString(): JobListAddStaffResultList.fromJson,
  685. (JobListAppliedEditEntity).toString(): JobListAppliedEditEntity.fromJson,
  686. (JobListAppliedEditReasonList).toString(): JobListAppliedEditReasonList.fromJson,
  687. (JobListAppliedInfoEntity).toString(): JobListAppliedInfoEntity.fromJson,
  688. (JobListAppliedStaffListEntity).toString(): JobListAppliedStaffListEntity.fromJson,
  689. (JobListAppliedStaffListRows).toString(): JobListAppliedStaffListRows.fromJson,
  690. (JobListAppliedStaffListRowsSecurityIn).toString(): JobListAppliedStaffListRowsSecurityIn.fromJson,
  691. (JobListAppliedStaffListRowsSecurityOut).toString(): JobListAppliedStaffListRowsSecurityOut.fromJson,
  692. (JobListAppliedStaffListRowsWorkIn).toString(): JobListAppliedStaffListRowsWorkIn.fromJson,
  693. (JobListAppliedStaffListRowsWorkOut).toString(): JobListAppliedStaffListRowsWorkOut.fromJson,
  694. (JobListAppliedStaffSearchEntity).toString(): JobListAppliedStaffSearchEntity.fromJson,
  695. (JobListAppliedStaffSearchRows).toString(): JobListAppliedStaffSearchRows.fromJson,
  696. (JobListAppliedWorkFlowEntity).toString(): JobListAppliedWorkFlowEntity.fromJson,
  697. (JobListAppliedWorkFlowRecords).toString(): JobListAppliedWorkFlowRecords.fromJson,
  698. (JobListDetailEntity).toString(): JobListDetailEntity.fromJson,
  699. (JobListDetailDepartmentList).toString(): JobListDetailDepartmentList.fromJson,
  700. (JobListEditIndexSGEntity).toString(): JobListEditIndexSGEntity.fromJson,
  701. (JobListEditIndexOption).toString(): JobListEditIndexOption.fromJson,
  702. (JobListEntity).toString(): JobListEntity.fromJson,
  703. (JobListRows).toString(): JobListRows.fromJson,
  704. (JobListIndexEntity).toString(): JobListIndexEntity.fromJson,
  705. (JobListIndexDepartmentList).toString(): JobListIndexDepartmentList.fromJson,
  706. (JobListIndexStatusList).toString(): JobListIndexStatusList.fromJson,
  707. (JobListIndexSGEntity).toString(): JobListIndexSGEntity.fromJson,
  708. (JobListIndexSGOption).toString(): JobListIndexSGOption.fromJson,
  709. (JobListRemarkViewEntity).toString(): JobListRemarkViewEntity.fromJson,
  710. (JobListSGEntity).toString(): JobListSGEntity.fromJson,
  711. (JobListSGRows).toString(): JobListSGRows.fromJson,
  712. (JobTemplateEditIndexEntity).toString(): JobTemplateEditIndexEntity.fromJson,
  713. (JobTemplateEditIndexAgeList).toString(): JobTemplateEditIndexAgeList.fromJson,
  714. (JobTemplateEditIndexSexList).toString(): JobTemplateEditIndexSexList.fromJson,
  715. (JobTemplateEditIndexLanguageList).toString(): JobTemplateEditIndexLanguageList.fromJson,
  716. (JobTemplateSGEntity).toString(): JobTemplateSGEntity.fromJson,
  717. (JobTemplateSGRows).toString(): JobTemplateSGRows.fromJson,
  718. (JobTitleEditIndexEntity).toString(): JobTitleEditIndexEntity.fromJson,
  719. (JobTitleEditIndexTemplate).toString(): JobTitleEditIndexTemplate.fromJson,
  720. (JobTitleSGEntity).toString(): JobTitleSGEntity.fromJson,
  721. (JobTitleSGRows).toString(): JobTitleSGRows.fromJson,
  722. (LabourReportEntity).toString(): LabourReportEntity.fromJson,
  723. (LabourReportRows).toString(): LabourReportRows.fromJson,
  724. (LabourReportTotal).toString(): LabourReportTotal.fromJson,
  725. (LabourReportVNEntity).toString(): LabourReportVNEntity.fromJson,
  726. (LabourReportVNRows).toString(): LabourReportVNRows.fromJson,
  727. (LabourReportVNTotal).toString(): LabourReportVNTotal.fromJson,
  728. (LabourRequestEditIndexEntity).toString(): LabourRequestEditIndexEntity.fromJson,
  729. (LabourRequestEditIndexTemplateList).toString(): LabourRequestEditIndexTemplateList.fromJson,
  730. (LabourRequestEditIndexDepartmentList).toString(): LabourRequestEditIndexDepartmentList.fromJson,
  731. (LabourRequestIndexEntity).toString(): LabourRequestIndexEntity.fromJson,
  732. (LabourRequestIndexDepartmentList).toString(): LabourRequestIndexDepartmentList.fromJson,
  733. (LabourRequestIndexStatusList).toString(): LabourRequestIndexStatusList.fromJson,
  734. (LabourRequestListEntity).toString(): LabourRequestListEntity.fromJson,
  735. (LabourRequestListRows).toString(): LabourRequestListRows.fromJson,
  736. (LabourRequestSGAddIndexEntity).toString(): LabourRequestSGAddIndexEntity.fromJson,
  737. (LabourRequestSGAddIndexOption).toString(): LabourRequestSGAddIndexOption.fromJson,
  738. (LabourRequestSGEditIndexEntity).toString(): LabourRequestSGEditIndexEntity.fromJson,
  739. (LabourRequestSGEditIndexJob).toString(): LabourRequestSGEditIndexJob.fromJson,
  740. (LabourRequestSGEditSelected).toString(): LabourRequestSGEditSelected.fromJson,
  741. (LabourRequestSGEditIndexChecked).toString(): LabourRequestSGEditIndexChecked.fromJson,
  742. (LabourRequestSGEntity).toString(): LabourRequestSGEntity.fromJson,
  743. (LabourRequestSGCountList).toString(): LabourRequestSGCountList.fromJson,
  744. (LabourRequestSGListEntity).toString(): LabourRequestSGListEntity.fromJson,
  745. (LabourRequestSGListRows).toString(): LabourRequestSGListRows.fromJson,
  746. (LabourRequestWorkFlowEntity).toString(): LabourRequestWorkFlowEntity.fromJson,
  747. (LabourRequestWorkFlowRecords).toString(): LabourRequestWorkFlowRecords.fromJson,
  748. (LabourReviewListEntity).toString(): LabourReviewListEntity.fromJson,
  749. (LabourReviewListRows).toString(): LabourReviewListRows.fromJson,
  750. (LabourReviewStatusEntity).toString(): LabourReviewStatusEntity.fromJson,
  751. (LabourReviewStatusRecords).toString(): LabourReviewStatusRecords.fromJson,
  752. (PositionTableEntity).toString(): PositionTableEntity.fromJson,
  753. (PositionTableRows).toString(): PositionTableRows.fromJson,
  754. (ReviseIndexSGEntity).toString(): ReviseIndexSGEntity.fromJson,
  755. (ReviseIndexSGStatusList).toString(): ReviseIndexSGStatusList.fromJson,
  756. (ReviseListSGEntity).toString(): ReviseListSGEntity.fromJson,
  757. (ReviseListSGRows).toString(): ReviseListSGRows.fromJson,
  758. (ReviseLogSGEntity).toString(): ReviseLogSGEntity.fromJson,
  759. (ReviseLogSGRecords).toString(): ReviseLogSGRecords.fromJson,
  760. (ReviseLogSGRecordsContent).toString(): ReviseLogSGRecordsContent.fromJson,
  761. (ReviseLogSGRecordsOption).toString(): ReviseLogSGRecordsOption.fromJson,
  762. (StaffDetailEntity).toString(): StaffDetailEntity.fromJson,
  763. (StaffDetailSGEntity).toString(): StaffDetailSGEntity.fromJson,
  764. (StaffDetailSGReviews).toString(): StaffDetailSGReviews.fromJson,
  765. (StaffDetailSGReviewsReviews).toString(): StaffDetailSGReviewsReviews.fromJson,
  766. (StaffJobHistorySGEntity).toString(): StaffJobHistorySGEntity.fromJson,
  767. (StaffJobHistorySGRows).toString(): StaffJobHistorySGRows.fromJson,
  768. (StaffLabourHistoryEntity).toString(): StaffLabourHistoryEntity.fromJson,
  769. (StaffLabourHistoryRows).toString(): StaffLabourHistoryRows.fromJson,
  770. (StaffLabourHistoryRowsSecurityIn).toString(): StaffLabourHistoryRowsSecurityIn.fromJson,
  771. (StaffLabourHistoryRowsSecurityOut).toString(): StaffLabourHistoryRowsSecurityOut.fromJson,
  772. (StaffLabourHistoryRowsWorkIn).toString(): StaffLabourHistoryRowsWorkIn.fromJson,
  773. (StaffLabourHistoryRowsWorkOut).toString(): StaffLabourHistoryRowsWorkOut.fromJson,
  774. (StaffRemarkHistoryEntity).toString(): StaffRemarkHistoryEntity.fromJson,
  775. (StaffRemarkHistoryRows).toString(): StaffRemarkHistoryRows.fromJson,
  776. (StaffReportVNEntity).toString(): StaffReportVNEntity.fromJson,
  777. (StaffRequestReportEntity).toString(): StaffRequestReportEntity.fromJson,
  778. (StaffReviewHistorySGEntity).toString(): StaffReviewHistorySGEntity.fromJson,
  779. (StaffReviewHistorySGReviews).toString(): StaffReviewHistorySGReviews.fromJson,
  780. (ServerTime).toString(): ServerTime.fromJson,
  781. };
  782. bool containsKey(String type) {
  783. return convertFuncMap.containsKey(type);
  784. }
  785. JsonConvertFunction? operator [](String key) {
  786. return convertFuncMap[key];
  787. }
  788. }