json_convert_content.dart 39 KB

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