json_convert_content.dart 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385
  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/attendance_entity.dart';
  7. import 'package:domain/entity/response/check_success_entity.dart';
  8. import 'package:domain/entity/response/hotel_info_entity.dart';
  9. import 'package:domain/entity/response/id_name_entity.dart';
  10. import 'package:domain/entity/response/job_list_add_staff_entity.dart';
  11. import 'package:domain/entity/response/job_list_applied_edit_entity.dart';
  12. import 'package:domain/entity/response/job_list_applied_info_entity.dart';
  13. import 'package:domain/entity/response/job_list_applied_staff_list_entity.dart';
  14. import 'package:domain/entity/response/job_list_applied_staff_search_entity.dart';
  15. import 'package:domain/entity/response/job_list_applied_work_flow_entity.dart';
  16. import 'package:domain/entity/response/job_list_detail_entity.dart';
  17. import 'package:domain/entity/response/job_list_entity.dart';
  18. import 'package:domain/entity/response/job_list_index_entity.dart';
  19. import 'package:domain/entity/response/job_list_remark_view_entity.dart';
  20. import 'package:domain/entity/response/labour_request_edit_index_entity.dart';
  21. import 'package:domain/entity/response/labour_request_index_entity.dart';
  22. import 'package:domain/entity/response/labour_request_list_entity.dart';
  23. import 'package:domain/entity/response/labour_request_work_flow_entity.dart';
  24. import 'package:domain/entity/response/staff_detail_entity.dart';
  25. import 'package:domain/entity/response/staff_labour_history_entity.dart';
  26. import 'package:domain/entity/response/staff_remark_history_entity.dart';
  27. import 'package:domain/entity/server_time.dart';
  28. JsonConvert jsonConvert = JsonConvert();
  29. typedef JsonConvertFunction<T> = T Function(Map<String, dynamic> json);
  30. typedef EnumConvertFunction<T> = T Function(String value);
  31. typedef ConvertExceptionHandler = void Function(Object error, StackTrace stackTrace);
  32. extension MapSafeExt<K, V> on Map<K, V> {
  33. T? getOrNull<T>(K? key) {
  34. if (!containsKey(key) || key == null) {
  35. return null;
  36. } else {
  37. return this[key] as T?;
  38. }
  39. }
  40. }
  41. class JsonConvert {
  42. static ConvertExceptionHandler? onError;
  43. JsonConvertClassCollection convertFuncMap = JsonConvertClassCollection();
  44. /// 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
  45. /// https://flutter.cn/docs/development/tools/hot-reload
  46. /// class MyApp extends StatelessWidget {
  47. /// const MyApp({Key? key})
  48. /// : super(key: key);
  49. ///
  50. /// @override
  51. /// Widget build(BuildContext context) {
  52. /// jsonConvert.reassembleConvertFuncMap();
  53. /// return MaterialApp();
  54. /// }
  55. /// }
  56. void reassembleConvertFuncMap() {
  57. bool isReleaseMode = const bool.fromEnvironment('dart.vm.product');
  58. if (!isReleaseMode) {
  59. convertFuncMap = JsonConvertClassCollection();
  60. }
  61. }
  62. T? convert<T>(dynamic value, {EnumConvertFunction? enumConvert}) {
  63. if (value == null) {
  64. return null;
  65. }
  66. if (value is T) {
  67. return value;
  68. }
  69. try {
  70. return _asT<T>(value, enumConvert: enumConvert);
  71. } catch (e, stackTrace) {
  72. debugPrint('asT<$T> $e $stackTrace');
  73. if (onError != null) {
  74. onError!(e, stackTrace);
  75. }
  76. return null;
  77. }
  78. }
  79. List<T?>? convertList<T>(List<dynamic>? value, {EnumConvertFunction? enumConvert}) {
  80. if (value == null) {
  81. return null;
  82. }
  83. try {
  84. return value.map((dynamic e) => _asT<T>(e, enumConvert: enumConvert)).toList();
  85. } catch (e, stackTrace) {
  86. debugPrint('asT<$T> $e $stackTrace');
  87. if (onError != null) {
  88. onError!(e, stackTrace);
  89. }
  90. return <T>[];
  91. }
  92. }
  93. List<T>? convertListNotNull<T>(dynamic value, {EnumConvertFunction? enumConvert}) {
  94. if (value == null) {
  95. return null;
  96. }
  97. try {
  98. return (value as List<dynamic>).map((dynamic e) => _asT<T>(e, enumConvert: enumConvert)!).toList();
  99. } catch (e, stackTrace) {
  100. debugPrint('asT<$T> $e $stackTrace');
  101. if (onError != null) {
  102. onError!(e, stackTrace);
  103. }
  104. return <T>[];
  105. }
  106. }
  107. T? _asT<T extends Object?>(dynamic value,
  108. {EnumConvertFunction? enumConvert}) {
  109. final String type = T.toString();
  110. final String valueS = value.toString();
  111. if (enumConvert != null) {
  112. return enumConvert(valueS) as T;
  113. } else if (type == "String") {
  114. return valueS as T;
  115. } else if (type == "int") {
  116. final int? intValue = int.tryParse(valueS);
  117. if (intValue == null) {
  118. return double.tryParse(valueS)?.toInt() as T?;
  119. } else {
  120. return intValue as T;
  121. }
  122. } else if (type == "double") {
  123. return double.parse(valueS) as T;
  124. } else if (type == "DateTime") {
  125. return DateTime.parse(valueS) as T;
  126. } else if (type == "bool") {
  127. if (valueS == '0' || valueS == '1') {
  128. return (valueS == '1') as T;
  129. }
  130. return (valueS == 'true') as T;
  131. } else if (type == "Map" || type.startsWith("Map<")) {
  132. return value as T;
  133. } else {
  134. if (convertFuncMap.containsKey(type)) {
  135. if (value == null) {
  136. return null;
  137. }
  138. return convertFuncMap[type]!(value as Map<String, dynamic>) as T;
  139. } else {
  140. throw UnimplementedError('$type unimplemented,you can try running the app again');
  141. }
  142. }
  143. }
  144. //list is returned by type
  145. static M? _getListChildType<M>(List<Map<String, dynamic>> data) {
  146. if (<AttendanceEntity>[] is M) {
  147. return data.map<AttendanceEntity>((Map<String, dynamic> e) => AttendanceEntity.fromJson(e)).toList() as M;
  148. }
  149. if (<AttendanceList>[] is M) {
  150. return data.map<AttendanceList>((Map<String, dynamic> e) => AttendanceList.fromJson(e)).toList() as M;
  151. }
  152. if (<CheckSuccessEntity>[] is M) {
  153. return data.map<CheckSuccessEntity>((Map<String, dynamic> e) => CheckSuccessEntity.fromJson(e)).toList() as M;
  154. }
  155. if (<HotelInfoEntity>[] is M) {
  156. return data.map<HotelInfoEntity>((Map<String, dynamic> e) => HotelInfoEntity.fromJson(e)).toList() as M;
  157. }
  158. if (<HotelInfoMenus>[] is M) {
  159. return data.map<HotelInfoMenus>((Map<String, dynamic> e) => HotelInfoMenus.fromJson(e)).toList() as M;
  160. }
  161. if (<HotelInfoMenusChildren>[] is M) {
  162. return data.map<HotelInfoMenusChildren>((Map<String, dynamic> e) => HotelInfoMenusChildren.fromJson(e)).toList() as M;
  163. }
  164. if (<IdNameEntity>[] is M) {
  165. return data.map<IdNameEntity>((Map<String, dynamic> e) => IdNameEntity.fromJson(e)).toList() as M;
  166. }
  167. if (<JobListAddStaffEntity>[] is M) {
  168. return data.map<JobListAddStaffEntity>((Map<String, dynamic> e) => JobListAddStaffEntity.fromJson(e)).toList() as M;
  169. }
  170. if (<JobListAddStaffResultList>[] is M) {
  171. return data.map<JobListAddStaffResultList>((Map<String, dynamic> e) => JobListAddStaffResultList.fromJson(e)).toList() as M;
  172. }
  173. if (<JobListAppliedEditEntity>[] is M) {
  174. return data.map<JobListAppliedEditEntity>((Map<String, dynamic> e) => JobListAppliedEditEntity.fromJson(e)).toList() as M;
  175. }
  176. if (<JobListAppliedEditReasonList>[] is M) {
  177. return data.map<JobListAppliedEditReasonList>((Map<String, dynamic> e) => JobListAppliedEditReasonList.fromJson(e)).toList() as M;
  178. }
  179. if (<JobListAppliedInfoEntity>[] is M) {
  180. return data.map<JobListAppliedInfoEntity>((Map<String, dynamic> e) => JobListAppliedInfoEntity.fromJson(e)).toList() as M;
  181. }
  182. if (<JobListAppliedStaffListEntity>[] is M) {
  183. return data.map<JobListAppliedStaffListEntity>((Map<String, dynamic> e) => JobListAppliedStaffListEntity.fromJson(e)).toList() as M;
  184. }
  185. if (<JobListAppliedStaffListRows>[] is M) {
  186. return data.map<JobListAppliedStaffListRows>((Map<String, dynamic> e) => JobListAppliedStaffListRows.fromJson(e)).toList() as M;
  187. }
  188. if (<JobListAppliedStaffListRowsSecurityIn>[] is M) {
  189. return data.map<JobListAppliedStaffListRowsSecurityIn>((Map<String, dynamic> e) => JobListAppliedStaffListRowsSecurityIn.fromJson(e)).toList() as M;
  190. }
  191. if (<JobListAppliedStaffListRowsSecurityOut>[] is M) {
  192. return data.map<JobListAppliedStaffListRowsSecurityOut>((Map<String, dynamic> e) => JobListAppliedStaffListRowsSecurityOut.fromJson(e)).toList() as M;
  193. }
  194. if (<JobListAppliedStaffListRowsWorkIn>[] is M) {
  195. return data.map<JobListAppliedStaffListRowsWorkIn>((Map<String, dynamic> e) => JobListAppliedStaffListRowsWorkIn.fromJson(e)).toList() as M;
  196. }
  197. if (<JobListAppliedStaffListRowsWorkOut>[] is M) {
  198. return data.map<JobListAppliedStaffListRowsWorkOut>((Map<String, dynamic> e) => JobListAppliedStaffListRowsWorkOut.fromJson(e)).toList() as M;
  199. }
  200. if (<JobListAppliedStaffSearchEntity>[] is M) {
  201. return data.map<JobListAppliedStaffSearchEntity>((Map<String, dynamic> e) => JobListAppliedStaffSearchEntity.fromJson(e)).toList() as M;
  202. }
  203. if (<JobListAppliedStaffSearchRows>[] is M) {
  204. return data.map<JobListAppliedStaffSearchRows>((Map<String, dynamic> e) => JobListAppliedStaffSearchRows.fromJson(e)).toList() as M;
  205. }
  206. if (<JobListAppliedWorkFlowEntity>[] is M) {
  207. return data.map<JobListAppliedWorkFlowEntity>((Map<String, dynamic> e) => JobListAppliedWorkFlowEntity.fromJson(e)).toList() as M;
  208. }
  209. if (<JobListAppliedWorkFlowRecords>[] is M) {
  210. return data.map<JobListAppliedWorkFlowRecords>((Map<String, dynamic> e) => JobListAppliedWorkFlowRecords.fromJson(e)).toList() as M;
  211. }
  212. if (<JobListDetailEntity>[] is M) {
  213. return data.map<JobListDetailEntity>((Map<String, dynamic> e) => JobListDetailEntity.fromJson(e)).toList() as M;
  214. }
  215. if (<JobListDetailDepartmentList>[] is M) {
  216. return data.map<JobListDetailDepartmentList>((Map<String, dynamic> e) => JobListDetailDepartmentList.fromJson(e)).toList() as M;
  217. }
  218. if (<JobListEntity>[] is M) {
  219. return data.map<JobListEntity>((Map<String, dynamic> e) => JobListEntity.fromJson(e)).toList() as M;
  220. }
  221. if (<JobListRows>[] is M) {
  222. return data.map<JobListRows>((Map<String, dynamic> e) => JobListRows.fromJson(e)).toList() as M;
  223. }
  224. if (<JobListIndexEntity>[] is M) {
  225. return data.map<JobListIndexEntity>((Map<String, dynamic> e) => JobListIndexEntity.fromJson(e)).toList() as M;
  226. }
  227. if (<JobListIndexDepartmentList>[] is M) {
  228. return data.map<JobListIndexDepartmentList>((Map<String, dynamic> e) => JobListIndexDepartmentList.fromJson(e)).toList() as M;
  229. }
  230. if (<JobListIndexStatusList>[] is M) {
  231. return data.map<JobListIndexStatusList>((Map<String, dynamic> e) => JobListIndexStatusList.fromJson(e)).toList() as M;
  232. }
  233. if (<JobListRemarkViewEntity>[] is M) {
  234. return data.map<JobListRemarkViewEntity>((Map<String, dynamic> e) => JobListRemarkViewEntity.fromJson(e)).toList() as M;
  235. }
  236. if (<LabourRequestEditIndexEntity>[] is M) {
  237. return data.map<LabourRequestEditIndexEntity>((Map<String, dynamic> e) => LabourRequestEditIndexEntity.fromJson(e)).toList() as M;
  238. }
  239. if (<LabourRequestEditIndexTemplateList>[] is M) {
  240. return data.map<LabourRequestEditIndexTemplateList>((Map<String, dynamic> e) => LabourRequestEditIndexTemplateList.fromJson(e)).toList() as M;
  241. }
  242. if (<LabourRequestEditIndexDepartmentList>[] is M) {
  243. return data.map<LabourRequestEditIndexDepartmentList>((Map<String, dynamic> e) => LabourRequestEditIndexDepartmentList.fromJson(e)).toList() as M;
  244. }
  245. if (<LabourRequestIndexEntity>[] is M) {
  246. return data.map<LabourRequestIndexEntity>((Map<String, dynamic> e) => LabourRequestIndexEntity.fromJson(e)).toList() as M;
  247. }
  248. if (<LabourRequestIndexDepartmentList>[] is M) {
  249. return data.map<LabourRequestIndexDepartmentList>((Map<String, dynamic> e) => LabourRequestIndexDepartmentList.fromJson(e)).toList() as M;
  250. }
  251. if (<LabourRequestIndexStatusList>[] is M) {
  252. return data.map<LabourRequestIndexStatusList>((Map<String, dynamic> e) => LabourRequestIndexStatusList.fromJson(e)).toList() as M;
  253. }
  254. if (<LabourRequestListEntity>[] is M) {
  255. return data.map<LabourRequestListEntity>((Map<String, dynamic> e) => LabourRequestListEntity.fromJson(e)).toList() as M;
  256. }
  257. if (<LabourRequestListRows>[] is M) {
  258. return data.map<LabourRequestListRows>((Map<String, dynamic> e) => LabourRequestListRows.fromJson(e)).toList() as M;
  259. }
  260. if (<LabourRequestWorkFlowEntity>[] is M) {
  261. return data.map<LabourRequestWorkFlowEntity>((Map<String, dynamic> e) => LabourRequestWorkFlowEntity.fromJson(e)).toList() as M;
  262. }
  263. if (<LabourRequestWorkFlowRecords>[] is M) {
  264. return data.map<LabourRequestWorkFlowRecords>((Map<String, dynamic> e) => LabourRequestWorkFlowRecords.fromJson(e)).toList() as M;
  265. }
  266. if (<StaffDetailEntity>[] is M) {
  267. return data.map<StaffDetailEntity>((Map<String, dynamic> e) => StaffDetailEntity.fromJson(e)).toList() as M;
  268. }
  269. if (<StaffLabourHistoryEntity>[] is M) {
  270. return data.map<StaffLabourHistoryEntity>((Map<String, dynamic> e) => StaffLabourHistoryEntity.fromJson(e)).toList() as M;
  271. }
  272. if (<StaffLabourHistoryRows>[] is M) {
  273. return data.map<StaffLabourHistoryRows>((Map<String, dynamic> e) => StaffLabourHistoryRows.fromJson(e)).toList() as M;
  274. }
  275. if (<StaffLabourHistoryRowsSecurityIn>[] is M) {
  276. return data.map<StaffLabourHistoryRowsSecurityIn>((Map<String, dynamic> e) => StaffLabourHistoryRowsSecurityIn.fromJson(e)).toList() as M;
  277. }
  278. if (<StaffLabourHistoryRowsSecurityOut>[] is M) {
  279. return data.map<StaffLabourHistoryRowsSecurityOut>((Map<String, dynamic> e) => StaffLabourHistoryRowsSecurityOut.fromJson(e)).toList() as M;
  280. }
  281. if (<StaffLabourHistoryRowsWorkIn>[] is M) {
  282. return data.map<StaffLabourHistoryRowsWorkIn>((Map<String, dynamic> e) => StaffLabourHistoryRowsWorkIn.fromJson(e)).toList() as M;
  283. }
  284. if (<StaffLabourHistoryRowsWorkOut>[] is M) {
  285. return data.map<StaffLabourHistoryRowsWorkOut>((Map<String, dynamic> e) => StaffLabourHistoryRowsWorkOut.fromJson(e)).toList() as M;
  286. }
  287. if (<StaffRemarkHistoryEntity>[] is M) {
  288. return data.map<StaffRemarkHistoryEntity>((Map<String, dynamic> e) => StaffRemarkHistoryEntity.fromJson(e)).toList() as M;
  289. }
  290. if (<StaffRemarkHistoryRows>[] is M) {
  291. return data.map<StaffRemarkHistoryRows>((Map<String, dynamic> e) => StaffRemarkHistoryRows.fromJson(e)).toList() as M;
  292. }
  293. if (<ServerTime>[] is M) {
  294. return data.map<ServerTime>((Map<String, dynamic> e) => ServerTime.fromJson(e)).toList() as M;
  295. }
  296. debugPrint("$M not found");
  297. return null;
  298. }
  299. static M? fromJsonAsT<M>(dynamic json) {
  300. if (json is M) {
  301. return json;
  302. }
  303. if (json is List) {
  304. return _getListChildType<M>(json.map((dynamic e) => e as Map<String, dynamic>).toList());
  305. } else {
  306. return jsonConvert.convert<M>(json);
  307. }
  308. }
  309. }
  310. class JsonConvertClassCollection {
  311. Map<String, JsonConvertFunction> convertFuncMap = {
  312. (AttendanceEntity).toString(): AttendanceEntity.fromJson,
  313. (AttendanceList).toString(): AttendanceList.fromJson,
  314. (CheckSuccessEntity).toString(): CheckSuccessEntity.fromJson,
  315. (HotelInfoEntity).toString(): HotelInfoEntity.fromJson,
  316. (HotelInfoMenus).toString(): HotelInfoMenus.fromJson,
  317. (HotelInfoMenusChildren).toString(): HotelInfoMenusChildren.fromJson,
  318. (IdNameEntity).toString(): IdNameEntity.fromJson,
  319. (JobListAddStaffEntity).toString(): JobListAddStaffEntity.fromJson,
  320. (JobListAddStaffResultList).toString(): JobListAddStaffResultList.fromJson,
  321. (JobListAppliedEditEntity).toString(): JobListAppliedEditEntity.fromJson,
  322. (JobListAppliedEditReasonList).toString(): JobListAppliedEditReasonList.fromJson,
  323. (JobListAppliedInfoEntity).toString(): JobListAppliedInfoEntity.fromJson,
  324. (JobListAppliedStaffListEntity).toString(): JobListAppliedStaffListEntity.fromJson,
  325. (JobListAppliedStaffListRows).toString(): JobListAppliedStaffListRows.fromJson,
  326. (JobListAppliedStaffListRowsSecurityIn).toString(): JobListAppliedStaffListRowsSecurityIn.fromJson,
  327. (JobListAppliedStaffListRowsSecurityOut).toString(): JobListAppliedStaffListRowsSecurityOut.fromJson,
  328. (JobListAppliedStaffListRowsWorkIn).toString(): JobListAppliedStaffListRowsWorkIn.fromJson,
  329. (JobListAppliedStaffListRowsWorkOut).toString(): JobListAppliedStaffListRowsWorkOut.fromJson,
  330. (JobListAppliedStaffSearchEntity).toString(): JobListAppliedStaffSearchEntity.fromJson,
  331. (JobListAppliedStaffSearchRows).toString(): JobListAppliedStaffSearchRows.fromJson,
  332. (JobListAppliedWorkFlowEntity).toString(): JobListAppliedWorkFlowEntity.fromJson,
  333. (JobListAppliedWorkFlowRecords).toString(): JobListAppliedWorkFlowRecords.fromJson,
  334. (JobListDetailEntity).toString(): JobListDetailEntity.fromJson,
  335. (JobListDetailDepartmentList).toString(): JobListDetailDepartmentList.fromJson,
  336. (JobListEntity).toString(): JobListEntity.fromJson,
  337. (JobListRows).toString(): JobListRows.fromJson,
  338. (JobListIndexEntity).toString(): JobListIndexEntity.fromJson,
  339. (JobListIndexDepartmentList).toString(): JobListIndexDepartmentList.fromJson,
  340. (JobListIndexStatusList).toString(): JobListIndexStatusList.fromJson,
  341. (JobListRemarkViewEntity).toString(): JobListRemarkViewEntity.fromJson,
  342. (LabourRequestEditIndexEntity).toString(): LabourRequestEditIndexEntity.fromJson,
  343. (LabourRequestEditIndexTemplateList).toString(): LabourRequestEditIndexTemplateList.fromJson,
  344. (LabourRequestEditIndexDepartmentList).toString(): LabourRequestEditIndexDepartmentList.fromJson,
  345. (LabourRequestIndexEntity).toString(): LabourRequestIndexEntity.fromJson,
  346. (LabourRequestIndexDepartmentList).toString(): LabourRequestIndexDepartmentList.fromJson,
  347. (LabourRequestIndexStatusList).toString(): LabourRequestIndexStatusList.fromJson,
  348. (LabourRequestListEntity).toString(): LabourRequestListEntity.fromJson,
  349. (LabourRequestListRows).toString(): LabourRequestListRows.fromJson,
  350. (LabourRequestWorkFlowEntity).toString(): LabourRequestWorkFlowEntity.fromJson,
  351. (LabourRequestWorkFlowRecords).toString(): LabourRequestWorkFlowRecords.fromJson,
  352. (StaffDetailEntity).toString(): StaffDetailEntity.fromJson,
  353. (StaffLabourHistoryEntity).toString(): StaffLabourHistoryEntity.fromJson,
  354. (StaffLabourHistoryRows).toString(): StaffLabourHistoryRows.fromJson,
  355. (StaffLabourHistoryRowsSecurityIn).toString(): StaffLabourHistoryRowsSecurityIn.fromJson,
  356. (StaffLabourHistoryRowsSecurityOut).toString(): StaffLabourHistoryRowsSecurityOut.fromJson,
  357. (StaffLabourHistoryRowsWorkIn).toString(): StaffLabourHistoryRowsWorkIn.fromJson,
  358. (StaffLabourHistoryRowsWorkOut).toString(): StaffLabourHistoryRowsWorkOut.fromJson,
  359. (StaffRemarkHistoryEntity).toString(): StaffRemarkHistoryEntity.fromJson,
  360. (StaffRemarkHistoryRows).toString(): StaffRemarkHistoryRows.fromJson,
  361. (ServerTime).toString(): ServerTime.fromJson,
  362. };
  363. bool containsKey(String type) {
  364. return convertFuncMap.containsKey(type);
  365. }
  366. JsonConvertFunction? operator [](String key) {
  367. return convertFuncMap[key];
  368. }
  369. }