json_convert_content.dart 49 KB

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