json_convert_content.dart 41 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924
  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/auth_login_entity.dart';
  7. import 'package:domain/entity/captcha_img_entity.dart';
  8. import 'package:domain/entity/facility_book_entity.dart';
  9. import 'package:domain/entity/facility_index_entity.dart';
  10. import 'package:domain/entity/facility_page_entity.dart';
  11. import 'package:domain/entity/feedback_detail_entity.dart';
  12. import 'package:domain/entity/feedback_list_entity.dart';
  13. import 'package:domain/entity/form_content_entity.dart';
  14. import 'package:domain/entity/form_detail_entity.dart';
  15. import 'package:domain/entity/form_list_entity.dart';
  16. import 'package:domain/entity/form_option_entity.dart';
  17. import 'package:domain/entity/form_submitted_entity.dart';
  18. import 'package:domain/entity/form_submitted_page_entity.dart';
  19. import 'package:domain/entity/garage_sale_history_entity.dart';
  20. import 'package:domain/entity/garage_sale_rent_detail_entity.dart';
  21. import 'package:domain/entity/garage_sale_rent_entity.dart';
  22. import 'package:domain/entity/home_list_entity.dart';
  23. import 'package:domain/entity/id_name_entity.dart';
  24. import 'package:domain/entity/latest_news_detail_entity.dart';
  25. import 'package:domain/entity/latest_news_page_entity.dart';
  26. import 'package:domain/entity/myfollowing_list_entity.dart';
  27. import 'package:domain/entity/myposts_newsfeed_entity.dart';
  28. import 'package:domain/entity/myposts_sale_rent_entity.dart';
  29. import 'package:domain/entity/newsfeed_comment_publish_entity.dart';
  30. import 'package:domain/entity/newsfeed_detail_entity.dart';
  31. import 'package:domain/entity/newsfeed_following_entity.dart';
  32. import 'package:domain/entity/newsfeed_foryou_entity.dart';
  33. import 'package:domain/entity/newsfeed_news_entity.dart';
  34. import 'package:domain/entity/notice_board_announ_detail_entity.dart';
  35. import 'package:domain/entity/notice_board_announ_entity.dart';
  36. import 'package:domain/entity/notice_board_documents_entity.dart';
  37. import 'package:domain/entity/notice_board_event_detail_entity.dart';
  38. import 'package:domain/entity/notice_board_event_entity.dart';
  39. import 'package:domain/entity/payment_page_entity.dart';
  40. import 'package:domain/entity/property_news_detail_entity.dart';
  41. import 'package:domain/entity/property_news_entity.dart';
  42. import 'package:domain/entity/property_sale_rent_entity.dart';
  43. import 'package:domain/entity/rewards_active_detail_entity.dart';
  44. import 'package:domain/entity/rewards_buy_entity.dart';
  45. import 'package:domain/entity/rewards_category_entity.dart';
  46. import 'package:domain/entity/rewards_detail_entity.dart';
  47. import 'package:domain/entity/rewards_history_earned_entity.dart';
  48. import 'package:domain/entity/rewards_home_entity.dart';
  49. import 'package:domain/entity/rewards_home_tes_entity.dart';
  50. import 'package:domain/entity/rewards_home_test_entity.dart';
  51. import 'package:domain/entity/rewards_home_tx_entity.dart';
  52. import 'package:domain/entity/rewards_index_entity.dart';
  53. import 'package:domain/entity/rewards_list_entity.dart';
  54. import 'package:domain/entity/rewards_my_detail_entity.dart';
  55. import 'package:domain/entity/rewards_my_entity.dart';
  56. import 'package:domain/entity/rewards_search_entity.dart';
  57. import 'package:domain/entity/server_time.dart';
  58. import 'package:domain/entity/service_evaluate_list_entity.dart';
  59. import 'package:domain/entity/service_order_detail_entity.dart';
  60. import 'package:domain/entity/service_repair_detail_entity.dart';
  61. import 'package:domain/entity/text_kon_entity.dart';
  62. import 'package:domain/entity/user_me_entity.dart';
  63. import 'package:domain/entity/visitor_page_entity.dart';
  64. JsonConvert jsonConvert = JsonConvert();
  65. typedef JsonConvertFunction<T> = T Function(Map<String, dynamic> json);
  66. typedef EnumConvertFunction<T> = T Function(String value);
  67. typedef ConvertExceptionHandler = void Function(Object error, StackTrace stackTrace);
  68. extension MapSafeExt<K, V> on Map<K, V> {
  69. T? getOrNull<T>(K? key) {
  70. if (!containsKey(key) || key == null) {
  71. return null;
  72. } else {
  73. return this[key] as T?;
  74. }
  75. }
  76. }
  77. class JsonConvert {
  78. static ConvertExceptionHandler? onError;
  79. JsonConvertClassCollection convertFuncMap = JsonConvertClassCollection();
  80. /// 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
  81. /// https://flutter.cn/docs/development/tools/hot-reload
  82. /// class MyApp extends StatelessWidget {
  83. /// const MyApp({Key? key})
  84. /// : super(key: key);
  85. ///
  86. /// @override
  87. /// Widget build(BuildContext context) {
  88. /// jsonConvert.reassembleConvertFuncMap();
  89. /// return MaterialApp();
  90. /// }
  91. /// }
  92. void reassembleConvertFuncMap() {
  93. bool isReleaseMode = const bool.fromEnvironment('dart.vm.product');
  94. if (!isReleaseMode) {
  95. convertFuncMap = JsonConvertClassCollection();
  96. }
  97. }
  98. T? convert<T>(dynamic value, {EnumConvertFunction? enumConvert}) {
  99. if (value == null) {
  100. return null;
  101. }
  102. if (value is T) {
  103. return value;
  104. }
  105. try {
  106. return _asT<T>(value, enumConvert: enumConvert);
  107. } catch (e, stackTrace) {
  108. debugPrint('asT<$T> $e $stackTrace');
  109. if (onError != null) {
  110. onError!(e, stackTrace);
  111. }
  112. return null;
  113. }
  114. }
  115. List<T?>? convertList<T>(List<dynamic>? value,
  116. {EnumConvertFunction? enumConvert}) {
  117. if (value == null) {
  118. return null;
  119. }
  120. try {
  121. return value.map((dynamic e) => _asT<T>(e, enumConvert: enumConvert))
  122. .toList();
  123. } catch (e, stackTrace) {
  124. debugPrint('asT<$T> $e $stackTrace');
  125. if (onError != null) {
  126. onError!(e, stackTrace);
  127. }
  128. return <T>[];
  129. }
  130. }
  131. List<T>? convertListNotNull<T>(dynamic value,
  132. {EnumConvertFunction? enumConvert}) {
  133. if (value == null) {
  134. return null;
  135. }
  136. try {
  137. return (value as List<dynamic>).map((dynamic e) =>
  138. _asT<T>(e, enumConvert: enumConvert)!).toList();
  139. } catch (e, stackTrace) {
  140. debugPrint('asT<$T> $e $stackTrace');
  141. if (onError != null) {
  142. onError!(e, stackTrace);
  143. }
  144. return <T>[];
  145. }
  146. }
  147. T? _asT<T extends Object?>(dynamic value,
  148. {EnumConvertFunction? enumConvert}) {
  149. final String type = T.toString();
  150. final String valueS = value.toString();
  151. if (enumConvert != null) {
  152. return enumConvert(valueS) as T;
  153. } else if (type == "String") {
  154. return valueS as T;
  155. } else if (type == "int") {
  156. final int? intValue = int.tryParse(valueS);
  157. if (intValue == null) {
  158. return double.tryParse(valueS)?.toInt() as T?;
  159. } else {
  160. return intValue as T;
  161. }
  162. } else if (type == "double") {
  163. return double.parse(valueS) as T;
  164. } else if (type == "DateTime") {
  165. return DateTime.parse(valueS) as T;
  166. } else if (type == "bool") {
  167. if (valueS == '0' || valueS == '1') {
  168. return (valueS == '1') as T;
  169. }
  170. return (valueS == 'true') as T;
  171. } else if (type == "Map" || type.startsWith("Map<")) {
  172. return value as T;
  173. } else {
  174. if (convertFuncMap.containsKey(type)) {
  175. if (value == null) {
  176. return null;
  177. }
  178. var covertFunc = convertFuncMap[type]!;
  179. if (covertFunc is Map<String, dynamic>) {
  180. return covertFunc(value as Map<String, dynamic>) as T;
  181. } else {
  182. return covertFunc(Map<String, dynamic>.from(value)) as T;
  183. }
  184. } else {
  185. throw UnimplementedError(
  186. '$type unimplemented,you can try running the app again');
  187. }
  188. }
  189. }
  190. //list is returned by type
  191. static M? _getListChildType<M>(List<Map<String, dynamic>> data) {
  192. if (<AuthLoginEntity>[] is M) {
  193. return data.map<AuthLoginEntity>((Map<String, dynamic> e) =>
  194. AuthLoginEntity.fromJson(e)).toList() as M;
  195. }
  196. if (<CaptchaImgEntity>[] is M) {
  197. return data.map<CaptchaImgEntity>((Map<String, dynamic> e) =>
  198. CaptchaImgEntity.fromJson(e)).toList() as M;
  199. }
  200. if (<FacilityBookEntity>[] is M) {
  201. return data.map<FacilityBookEntity>((Map<String, dynamic> e) =>
  202. FacilityBookEntity.fromJson(e)).toList() as M;
  203. }
  204. if (<FacilityBookFacilityType>[] is M) {
  205. return data.map<FacilityBookFacilityType>((Map<String, dynamic> e) =>
  206. FacilityBookFacilityType.fromJson(e)).toList() as M;
  207. }
  208. if (<FacilityBookFacilities>[] is M) {
  209. return data.map<FacilityBookFacilities>((Map<String, dynamic> e) =>
  210. FacilityBookFacilities.fromJson(e)).toList() as M;
  211. }
  212. if (<FacilityBookFacilitiesPeriods>[] is M) {
  213. return data.map<FacilityBookFacilitiesPeriods>((Map<String, dynamic> e) =>
  214. FacilityBookFacilitiesPeriods.fromJson(e)).toList() as M;
  215. }
  216. if (<FacilityIndexEntity>[] is M) {
  217. return data.map<FacilityIndexEntity>((Map<String, dynamic> e) =>
  218. FacilityIndexEntity.fromJson(e)).toList() as M;
  219. }
  220. if (<FacilityPageEntity>[] is M) {
  221. return data.map<FacilityPageEntity>((Map<String, dynamic> e) =>
  222. FacilityPageEntity.fromJson(e)).toList() as M;
  223. }
  224. if (<FacilityDetail>[] is M) {
  225. return data.map<FacilityDetail>((Map<String, dynamic> e) =>
  226. FacilityDetail.fromJson(e)).toList() as M;
  227. }
  228. if (<FacilityPageListBooking>[] is M) {
  229. return data.map<FacilityPageListBooking>((Map<String, dynamic> e) =>
  230. FacilityPageListBooking.fromJson(e)).toList() as M;
  231. }
  232. if (<FacilityPageListFacility>[] is M) {
  233. return data.map<FacilityPageListFacility>((Map<String, dynamic> e) =>
  234. FacilityPageListFacility.fromJson(e)).toList() as M;
  235. }
  236. if (<FacilityPageListFacilityType>[] is M) {
  237. return data.map<FacilityPageListFacilityType>((Map<String, dynamic> e) =>
  238. FacilityPageListFacilityType.fromJson(e)).toList() as M;
  239. }
  240. if (<FacilityPageListTimePeriod>[] is M) {
  241. return data.map<FacilityPageListTimePeriod>((Map<String, dynamic> e) =>
  242. FacilityPageListTimePeriod.fromJson(e)).toList() as M;
  243. }
  244. if (<FacilityPageListAccount>[] is M) {
  245. return data.map<FacilityPageListAccount>((Map<String, dynamic> e) =>
  246. FacilityPageListAccount.fromJson(e)).toList() as M;
  247. }
  248. if (<FeedbackDetailEntity>[] is M) {
  249. return data.map<FeedbackDetailEntity>((Map<String, dynamic> e) =>
  250. FeedbackDetailEntity.fromJson(e)).toList() as M;
  251. }
  252. if (<FeedbackDetailReplies>[] is M) {
  253. return data.map<FeedbackDetailReplies>((Map<String, dynamic> e) =>
  254. FeedbackDetailReplies.fromJson(e)).toList() as M;
  255. }
  256. if (<FeedbackListEntity>[] is M) {
  257. return data.map<FeedbackListEntity>((Map<String, dynamic> e) =>
  258. FeedbackListEntity.fromJson(e)).toList() as M;
  259. }
  260. if (<FeedbackItemEntity>[] is M) {
  261. return data.map<FeedbackItemEntity>((Map<String, dynamic> e) =>
  262. FeedbackItemEntity.fromJson(e)).toList() as M;
  263. }
  264. if (<FormContentEntity>[] is M) {
  265. return data.map<FormContentEntity>((Map<String, dynamic> e) =>
  266. FormContentEntity.fromJson(e)).toList() as M;
  267. }
  268. if (<FormDetailEntity>[] is M) {
  269. return data.map<FormDetailEntity>((Map<String, dynamic> e) =>
  270. FormDetailEntity.fromJson(e)).toList() as M;
  271. }
  272. if (<FormListEntity>[] is M) {
  273. return data.map<FormListEntity>((Map<String, dynamic> e) =>
  274. FormListEntity.fromJson(e)).toList() as M;
  275. }
  276. if (<FormOptionEntity>[] is M) {
  277. return data.map<FormOptionEntity>((Map<String, dynamic> e) =>
  278. FormOptionEntity.fromJson(e)).toList() as M;
  279. }
  280. if (<FormSubmittedEntity>[] is M) {
  281. return data.map<FormSubmittedEntity>((Map<String, dynamic> e) =>
  282. FormSubmittedEntity.fromJson(e)).toList() as M;
  283. }
  284. if (<FormSubmittedEstateOnlineForm>[] is M) {
  285. return data.map<FormSubmittedEstateOnlineForm>((Map<String, dynamic> e) =>
  286. FormSubmittedEstateOnlineForm.fromJson(e)).toList() as M;
  287. }
  288. if (<FormSubmittedPageEntity>[] is M) {
  289. return data.map<FormSubmittedPageEntity>((Map<String, dynamic> e) =>
  290. FormSubmittedPageEntity.fromJson(e)).toList() as M;
  291. }
  292. if (<GarageSaleHistoryEntity>[] is M) {
  293. return data.map<GarageSaleHistoryEntity>((Map<String, dynamic> e) =>
  294. GarageSaleHistoryEntity.fromJson(e)).toList() as M;
  295. }
  296. if (<GarageSaleHistoryList>[] is M) {
  297. return data.map<GarageSaleHistoryList>((Map<String, dynamic> e) =>
  298. GarageSaleHistoryList.fromJson(e)).toList() as M;
  299. }
  300. if (<GarageSaleHistoryListOrderProducts>[] is M) {
  301. return data.map<GarageSaleHistoryListOrderProducts>((
  302. Map<String, dynamic> e) =>
  303. GarageSaleHistoryListOrderProducts.fromJson(e)).toList() as M;
  304. }
  305. if (<GarageSaleRentDetailEntity>[] is M) {
  306. return data.map<GarageSaleRentDetailEntity>((Map<String, dynamic> e) =>
  307. GarageSaleRentDetailEntity.fromJson(e)).toList() as M;
  308. }
  309. if (<GarageSaleRentDetailAccount>[] is M) {
  310. return data.map<GarageSaleRentDetailAccount>((Map<String, dynamic> e) =>
  311. GarageSaleRentDetailAccount.fromJson(e)).toList() as M;
  312. }
  313. if (<GarageSaleRentEntity>[] is M) {
  314. return data.map<GarageSaleRentEntity>((Map<String, dynamic> e) =>
  315. GarageSaleRentEntity.fromJson(e)).toList() as M;
  316. }
  317. if (<GarageSaleRentList>[] is M) {
  318. return data.map<GarageSaleRentList>((Map<String, dynamic> e) =>
  319. GarageSaleRentList.fromJson(e)).toList() as M;
  320. }
  321. if (<GarageSaleRentListAccount>[] is M) {
  322. return data.map<GarageSaleRentListAccount>((Map<String, dynamic> e) =>
  323. GarageSaleRentListAccount.fromJson(e)).toList() as M;
  324. }
  325. if (<HomeListEntity>[] is M) {
  326. return data.map<HomeListEntity>((Map<String, dynamic> e) =>
  327. HomeListEntity.fromJson(e)).toList() as M;
  328. }
  329. if (<HomeListBanners>[] is M) {
  330. return data.map<HomeListBanners>((Map<String, dynamic> e) =>
  331. HomeListBanners.fromJson(e)).toList() as M;
  332. }
  333. if (<HomeListLatestTransactions>[] is M) {
  334. return data.map<HomeListLatestTransactions>((Map<String, dynamic> e) =>
  335. HomeListLatestTransactions.fromJson(e)).toList() as M;
  336. }
  337. if (<HomeListPropertyNews>[] is M) {
  338. return data.map<HomeListPropertyNews>((Map<String, dynamic> e) =>
  339. HomeListPropertyNews.fromJson(e)).toList() as M;
  340. }
  341. if (<IdNameEntity>[] is M) {
  342. return data.map<IdNameEntity>((Map<String, dynamic> e) =>
  343. IdNameEntity.fromJson(e)).toList() as M;
  344. }
  345. if (<LatestNewsDetailEntity>[] is M) {
  346. return data.map<LatestNewsDetailEntity>((Map<String, dynamic> e) =>
  347. LatestNewsDetailEntity.fromJson(e)).toList() as M;
  348. }
  349. if (<LatestNewsPageEntity>[] is M) {
  350. return data.map<LatestNewsPageEntity>((Map<String, dynamic> e) =>
  351. LatestNewsPageEntity.fromJson(e)).toList() as M;
  352. }
  353. if (<LatestNewsList>[] is M) {
  354. return data.map<LatestNewsList>((Map<String, dynamic> e) =>
  355. LatestNewsList.fromJson(e)).toList() as M;
  356. }
  357. if (<MyfollowingListEntity>[] is M) {
  358. return data.map<MyfollowingListEntity>((Map<String, dynamic> e) =>
  359. MyfollowingListEntity.fromJson(e)).toList() as M;
  360. }
  361. if (<MypostsNewsfeedEntity>[] is M) {
  362. return data.map<MypostsNewsfeedEntity>((Map<String, dynamic> e) =>
  363. MypostsNewsfeedEntity.fromJson(e)).toList() as M;
  364. }
  365. if (<MypostsNewsfeedList>[] is M) {
  366. return data.map<MypostsNewsfeedList>((Map<String, dynamic> e) =>
  367. MypostsNewsfeedList.fromJson(e)).toList() as M;
  368. }
  369. if (<MypostsNewsfeedListAccount>[] is M) {
  370. return data.map<MypostsNewsfeedListAccount>((Map<String, dynamic> e) =>
  371. MypostsNewsfeedListAccount.fromJson(e)).toList() as M;
  372. }
  373. if (<MypostsSaleRentEntity>[] is M) {
  374. return data.map<MypostsSaleRentEntity>((Map<String, dynamic> e) =>
  375. MypostsSaleRentEntity.fromJson(e)).toList() as M;
  376. }
  377. if (<MypostsSaleRentList>[] is M) {
  378. return data.map<MypostsSaleRentList>((Map<String, dynamic> e) =>
  379. MypostsSaleRentList.fromJson(e)).toList() as M;
  380. }
  381. if (<NewsfeedCommentPublishEntity>[] is M) {
  382. return data.map<NewsfeedCommentPublishEntity>((Map<String, dynamic> e) =>
  383. NewsfeedCommentPublishEntity.fromJson(e)).toList() as M;
  384. }
  385. if (<NewsfeedDetailEntity>[] is M) {
  386. return data.map<NewsfeedDetailEntity>((Map<String, dynamic> e) =>
  387. NewsfeedDetailEntity.fromJson(e)).toList() as M;
  388. }
  389. if (<NewsfeedDetailAccount>[] is M) {
  390. return data.map<NewsfeedDetailAccount>((Map<String, dynamic> e) =>
  391. NewsfeedDetailAccount.fromJson(e)).toList() as M;
  392. }
  393. if (<NewsfeedDetailComments>[] is M) {
  394. return data.map<NewsfeedDetailComments>((Map<String, dynamic> e) =>
  395. NewsfeedDetailComments.fromJson(e)).toList() as M;
  396. }
  397. if (<NewsfeedDetailCommentsAccount>[] is M) {
  398. return data.map<NewsfeedDetailCommentsAccount>((Map<String, dynamic> e) =>
  399. NewsfeedDetailCommentsAccount.fromJson(e)).toList() as M;
  400. }
  401. if (<NewsfeedDetailCommentsToAccount>[] is M) {
  402. return data.map<NewsfeedDetailCommentsToAccount>((
  403. Map<String, dynamic> e) =>
  404. NewsfeedDetailCommentsToAccount.fromJson(e)).toList() as M;
  405. }
  406. if (<NewsfeedFollowingEntity>[] is M) {
  407. return data.map<NewsfeedFollowingEntity>((Map<String, dynamic> e) =>
  408. NewsfeedFollowingEntity.fromJson(e)).toList() as M;
  409. }
  410. if (<NewsfeedFollowingList>[] is M) {
  411. return data.map<NewsfeedFollowingList>((Map<String, dynamic> e) =>
  412. NewsfeedFollowingList.fromJson(e)).toList() as M;
  413. }
  414. if (<NewsfeedFollowingListAccount>[] is M) {
  415. return data.map<NewsfeedFollowingListAccount>((Map<String, dynamic> e) =>
  416. NewsfeedFollowingListAccount.fromJson(e)).toList() as M;
  417. }
  418. if (<NewsfeedForyouEntity>[] is M) {
  419. return data.map<NewsfeedForyouEntity>((Map<String, dynamic> e) =>
  420. NewsfeedForyouEntity.fromJson(e)).toList() as M;
  421. }
  422. if (<NewsfeedForyouList>[] is M) {
  423. return data.map<NewsfeedForyouList>((Map<String, dynamic> e) =>
  424. NewsfeedForyouList.fromJson(e)).toList() as M;
  425. }
  426. if (<NewsfeedForyouListAccount>[] is M) {
  427. return data.map<NewsfeedForyouListAccount>((Map<String, dynamic> e) =>
  428. NewsfeedForyouListAccount.fromJson(e)).toList() as M;
  429. }
  430. if (<NewsfeedNewsEntity>[] is M) {
  431. return data.map<NewsfeedNewsEntity>((Map<String, dynamic> e) =>
  432. NewsfeedNewsEntity.fromJson(e)).toList() as M;
  433. }
  434. if (<NewsfeedNewsList>[] is M) {
  435. return data.map<NewsfeedNewsList>((Map<String, dynamic> e) =>
  436. NewsfeedNewsList.fromJson(e)).toList() as M;
  437. }
  438. if (<NewsfeedNewsListAccount>[] is M) {
  439. return data.map<NewsfeedNewsListAccount>((Map<String, dynamic> e) =>
  440. NewsfeedNewsListAccount.fromJson(e)).toList() as M;
  441. }
  442. if (<NoticeBoardAnnounDetailEntity>[] is M) {
  443. return data.map<NoticeBoardAnnounDetailEntity>((Map<String, dynamic> e) =>
  444. NoticeBoardAnnounDetailEntity.fromJson(e)).toList() as M;
  445. }
  446. if (<NoticeBoardAnnounEntity>[] is M) {
  447. return data.map<NoticeBoardAnnounEntity>((Map<String, dynamic> e) =>
  448. NoticeBoardAnnounEntity.fromJson(e)).toList() as M;
  449. }
  450. if (<NoticeBoardAnnounList>[] is M) {
  451. return data.map<NoticeBoardAnnounList>((Map<String, dynamic> e) =>
  452. NoticeBoardAnnounList.fromJson(e)).toList() as M;
  453. }
  454. if (<NoticeBoardDocumentsEntity>[] is M) {
  455. return data.map<NoticeBoardDocumentsEntity>((Map<String, dynamic> e) =>
  456. NoticeBoardDocumentsEntity.fromJson(e)).toList() as M;
  457. }
  458. if (<NoticeBoardDocumentsList>[] is M) {
  459. return data.map<NoticeBoardDocumentsList>((Map<String, dynamic> e) =>
  460. NoticeBoardDocumentsList.fromJson(e)).toList() as M;
  461. }
  462. if (<NoticeBoardEventDetailEntity>[] is M) {
  463. return data.map<NoticeBoardEventDetailEntity>((Map<String, dynamic> e) =>
  464. NoticeBoardEventDetailEntity.fromJson(e)).toList() as M;
  465. }
  466. if (<NoticeBoardEventEntity>[] is M) {
  467. return data.map<NoticeBoardEventEntity>((Map<String, dynamic> e) =>
  468. NoticeBoardEventEntity.fromJson(e)).toList() as M;
  469. }
  470. if (<NoticeBoardEventList>[] is M) {
  471. return data.map<NoticeBoardEventList>((Map<String, dynamic> e) =>
  472. NoticeBoardEventList.fromJson(e)).toList() as M;
  473. }
  474. if (<PaymentPageEntity>[] is M) {
  475. return data.map<PaymentPageEntity>((Map<String, dynamic> e) =>
  476. PaymentPageEntity.fromJson(e)).toList() as M;
  477. }
  478. if (<PaymentPageList>[] is M) {
  479. return data.map<PaymentPageList>((Map<String, dynamic> e) =>
  480. PaymentPageList.fromJson(e)).toList() as M;
  481. }
  482. if (<PropertyNewsDetailEntity>[] is M) {
  483. return data.map<PropertyNewsDetailEntity>((Map<String, dynamic> e) =>
  484. PropertyNewsDetailEntity.fromJson(e)).toList() as M;
  485. }
  486. if (<PropertyNewsEntity>[] is M) {
  487. return data.map<PropertyNewsEntity>((Map<String, dynamic> e) =>
  488. PropertyNewsEntity.fromJson(e)).toList() as M;
  489. }
  490. if (<PropertyNewsList>[] is M) {
  491. return data.map<PropertyNewsList>((Map<String, dynamic> e) =>
  492. PropertyNewsList.fromJson(e)).toList() as M;
  493. }
  494. if (<PropertySaleRentEntity>[] is M) {
  495. return data.map<PropertySaleRentEntity>((Map<String, dynamic> e) =>
  496. PropertySaleRentEntity.fromJson(e)).toList() as M;
  497. }
  498. if (<PropertySaleRentList>[] is M) {
  499. return data.map<PropertySaleRentList>((Map<String, dynamic> e) =>
  500. PropertySaleRentList.fromJson(e)).toList() as M;
  501. }
  502. if (<RewardsActiveDetailEntity>[] is M) {
  503. return data.map<RewardsActiveDetailEntity>((Map<String, dynamic> e) =>
  504. RewardsActiveDetailEntity.fromJson(e)).toList() as M;
  505. }
  506. if (<RewardsActiveDetailData>[] is M) {
  507. return data.map<RewardsActiveDetailData>((Map<String, dynamic> e) =>
  508. RewardsActiveDetailData.fromJson(e)).toList() as M;
  509. }
  510. if (<RewardsActiveDetailDataAccount>[] is M) {
  511. return data.map<RewardsActiveDetailDataAccount>((
  512. Map<String, dynamic> e) => RewardsActiveDetailDataAccount.fromJson(e))
  513. .toList() as M;
  514. }
  515. if (<RewardsActiveDetailDataReward>[] is M) {
  516. return data.map<RewardsActiveDetailDataReward>((Map<String, dynamic> e) =>
  517. RewardsActiveDetailDataReward.fromJson(e)).toList() as M;
  518. }
  519. if (<RewardsBuyEntity>[] is M) {
  520. return data.map<RewardsBuyEntity>((Map<String, dynamic> e) =>
  521. RewardsBuyEntity.fromJson(e)).toList() as M;
  522. }
  523. if (<RewardsBuyReward>[] is M) {
  524. return data.map<RewardsBuyReward>((Map<String, dynamic> e) =>
  525. RewardsBuyReward.fromJson(e)).toList() as M;
  526. }
  527. if (<RewardsBuyRewardRedeemable>[] is M) {
  528. return data.map<RewardsBuyRewardRedeemable>((Map<String, dynamic> e) =>
  529. RewardsBuyRewardRedeemable.fromJson(e)).toList() as M;
  530. }
  531. if (<RewardsCategoryEntity>[] is M) {
  532. return data.map<RewardsCategoryEntity>((Map<String, dynamic> e) =>
  533. RewardsCategoryEntity.fromJson(e)).toList() as M;
  534. }
  535. if (<RewardsDetailEntity>[] is M) {
  536. return data.map<RewardsDetailEntity>((Map<String, dynamic> e) =>
  537. RewardsDetailEntity.fromJson(e)).toList() as M;
  538. }
  539. if (<RewardsDetailRedeemable>[] is M) {
  540. return data.map<RewardsDetailRedeemable>((Map<String, dynamic> e) =>
  541. RewardsDetailRedeemable.fromJson(e)).toList() as M;
  542. }
  543. if (<RewardsHistoryEarnedEntity>[] is M) {
  544. return data.map<RewardsHistoryEarnedEntity>((Map<String, dynamic> e) =>
  545. RewardsHistoryEarnedEntity.fromJson(e)).toList() as M;
  546. }
  547. if (<RewardsHistoryEarnedList>[] is M) {
  548. return data.map<RewardsHistoryEarnedList>((Map<String, dynamic> e) =>
  549. RewardsHistoryEarnedList.fromJson(e)).toList() as M;
  550. }
  551. if (<RewardsHomeEntity>[] is M) {
  552. return data.map<RewardsHomeEntity>((Map<String, dynamic> e) =>
  553. RewardsHomeEntity.fromJson(e)).toList() as M;
  554. }
  555. if (<RewardsHomeData>[] is M) {
  556. return data.map<RewardsHomeData>((Map<String, dynamic> e) =>
  557. RewardsHomeData.fromJson(e)).toList() as M;
  558. }
  559. if (<RewardsHomeDataRewards>[] is M) {
  560. return data.map<RewardsHomeDataRewards>((Map<String, dynamic> e) =>
  561. RewardsHomeDataRewards.fromJson(e)).toList() as M;
  562. }
  563. if (<RewardsHomeTesEntity>[] is M) {
  564. return data.map<RewardsHomeTesEntity>((Map<String, dynamic> e) =>
  565. RewardsHomeTesEntity.fromJson(e)).toList() as M;
  566. }
  567. if (<RewardsHomeTesRewards>[] is M) {
  568. return data.map<RewardsHomeTesRewards>((Map<String, dynamic> e) =>
  569. RewardsHomeTesRewards.fromJson(e)).toList() as M;
  570. }
  571. if (<RewardsHomeTestEntity>[] is M) {
  572. return data.map<RewardsHomeTestEntity>((Map<String, dynamic> e) =>
  573. RewardsHomeTestEntity.fromJson(e)).toList() as M;
  574. }
  575. if (<RewardsHomeTxEntity>[] is M) {
  576. return data.map<RewardsHomeTxEntity>((Map<String, dynamic> e) =>
  577. RewardsHomeTxEntity.fromJson(e)).toList() as M;
  578. }
  579. if (<RewardsIndexEntity>[] is M) {
  580. return data.map<RewardsIndexEntity>((Map<String, dynamic> e) =>
  581. RewardsIndexEntity.fromJson(e)).toList() as M;
  582. }
  583. if (<RewardsIndexContinuous>[] is M) {
  584. return data.map<RewardsIndexContinuous>((Map<String, dynamic> e) =>
  585. RewardsIndexContinuous.fromJson(e)).toList() as M;
  586. }
  587. if (<RewardsIndexTasks>[] is M) {
  588. return data.map<RewardsIndexTasks>((Map<String, dynamic> e) =>
  589. RewardsIndexTasks.fromJson(e)).toList() as M;
  590. }
  591. if (<RewardsListEntity>[] is M) {
  592. return data.map<RewardsListEntity>((Map<String, dynamic> e) =>
  593. RewardsListEntity.fromJson(e)).toList() as M;
  594. }
  595. if (<RewardsListList>[] is M) {
  596. return data.map<RewardsListList>((Map<String, dynamic> e) =>
  597. RewardsListList.fromJson(e)).toList() as M;
  598. }
  599. if (<RewardsMyDetailEntity>[] is M) {
  600. return data.map<RewardsMyDetailEntity>((Map<String, dynamic> e) =>
  601. RewardsMyDetailEntity.fromJson(e)).toList() as M;
  602. }
  603. if (<RewardsMyDetailAccount>[] is M) {
  604. return data.map<RewardsMyDetailAccount>((Map<String, dynamic> e) =>
  605. RewardsMyDetailAccount.fromJson(e)).toList() as M;
  606. }
  607. if (<RewardsMyDetailReward>[] is M) {
  608. return data.map<RewardsMyDetailReward>((Map<String, dynamic> e) =>
  609. RewardsMyDetailReward.fromJson(e)).toList() as M;
  610. }
  611. if (<RewardsMyEntity>[] is M) {
  612. return data.map<RewardsMyEntity>((Map<String, dynamic> e) =>
  613. RewardsMyEntity.fromJson(e)).toList() as M;
  614. }
  615. if (<RewardsMyList>[] is M) {
  616. return data.map<RewardsMyList>((Map<String, dynamic> e) =>
  617. RewardsMyList.fromJson(e)).toList() as M;
  618. }
  619. if (<RewardsMyListReward>[] is M) {
  620. return data.map<RewardsMyListReward>((Map<String, dynamic> e) =>
  621. RewardsMyListReward.fromJson(e)).toList() as M;
  622. }
  623. if (<RewardsSearchEntity>[] is M) {
  624. return data.map<RewardsSearchEntity>((Map<String, dynamic> e) =>
  625. RewardsSearchEntity.fromJson(e)).toList() as M;
  626. }
  627. if (<RewardsSearchRewards>[] is M) {
  628. return data.map<RewardsSearchRewards>((Map<String, dynamic> e) =>
  629. RewardsSearchRewards.fromJson(e)).toList() as M;
  630. }
  631. if (<ServerTime>[] is M) {
  632. return data.map<ServerTime>((Map<String, dynamic> e) =>
  633. ServerTime.fromJson(e)).toList() as M;
  634. }
  635. if (<ServiceEvaluateListEntity>[] is M) {
  636. return data.map<ServiceEvaluateListEntity>((Map<String, dynamic> e) =>
  637. ServiceEvaluateListEntity.fromJson(e)).toList() as M;
  638. }
  639. if (<ServiceEvaluateListList>[] is M) {
  640. return data.map<ServiceEvaluateListList>((Map<String, dynamic> e) =>
  641. ServiceEvaluateListList.fromJson(e)).toList() as M;
  642. }
  643. if (<ServiceEvaluateListListAccount>[] is M) {
  644. return data.map<ServiceEvaluateListListAccount>((
  645. Map<String, dynamic> e) => ServiceEvaluateListListAccount.fromJson(e))
  646. .toList() as M;
  647. }
  648. if (<ServiceOrderDetailEntity>[] is M) {
  649. return data.map<ServiceOrderDetailEntity>((Map<String, dynamic> e) =>
  650. ServiceOrderDetailEntity.fromJson(e)).toList() as M;
  651. }
  652. if (<ServiceOrderDetailAccount>[] is M) {
  653. return data.map<ServiceOrderDetailAccount>((Map<String, dynamic> e) =>
  654. ServiceOrderDetailAccount.fromJson(e)).toList() as M;
  655. }
  656. if (<ServiceOrderDetailOrderService>[] is M) {
  657. return data.map<ServiceOrderDetailOrderService>((
  658. Map<String, dynamic> e) => ServiceOrderDetailOrderService.fromJson(e))
  659. .toList() as M;
  660. }
  661. if (<ServiceOrderDetailOrderProducts>[] is M) {
  662. return data.map<ServiceOrderDetailOrderProducts>((
  663. Map<String, dynamic> e) =>
  664. ServiceOrderDetailOrderProducts.fromJson(e)).toList() as M;
  665. }
  666. if (<ServiceOrderDetailEstate>[] is M) {
  667. return data.map<ServiceOrderDetailEstate>((Map<String, dynamic> e) =>
  668. ServiceOrderDetailEstate.fromJson(e)).toList() as M;
  669. }
  670. if (<ServiceOrderDetailEstateUnit>[] is M) {
  671. return data.map<ServiceOrderDetailEstateUnit>((Map<String, dynamic> e) =>
  672. ServiceOrderDetailEstateUnit.fromJson(e)).toList() as M;
  673. }
  674. if (<ServiceRepairDetailEntity>[] is M) {
  675. return data.map<ServiceRepairDetailEntity>((Map<String, dynamic> e) =>
  676. ServiceRepairDetailEntity.fromJson(e)).toList() as M;
  677. }
  678. if (<ServiceRepairDetailMerchant>[] is M) {
  679. return data.map<ServiceRepairDetailMerchant>((Map<String, dynamic> e) =>
  680. ServiceRepairDetailMerchant.fromJson(e)).toList() as M;
  681. }
  682. if (<ServiceRepairDetailCategory>[] is M) {
  683. return data.map<ServiceRepairDetailCategory>((Map<String, dynamic> e) =>
  684. ServiceRepairDetailCategory.fromJson(e)).toList() as M;
  685. }
  686. if (<TextKonEntity>[] is M) {
  687. return data.map<TextKonEntity>((Map<String, dynamic> e) =>
  688. TextKonEntity.fromJson(e)).toList() as M;
  689. }
  690. if (<UserMeEntity>[] is M) {
  691. return data.map<UserMeEntity>((Map<String, dynamic> e) =>
  692. UserMeEntity.fromJson(e)).toList() as M;
  693. }
  694. if (<UserMeHouseholds>[] is M) {
  695. return data.map<UserMeHouseholds>((Map<String, dynamic> e) =>
  696. UserMeHouseholds.fromJson(e)).toList() as M;
  697. }
  698. if (<UserMeEstates>[] is M) {
  699. return data.map<UserMeEstates>((Map<String, dynamic> e) =>
  700. UserMeEstates.fromJson(e)).toList() as M;
  701. }
  702. if (<UserMeEstatesAccounts>[] is M) {
  703. return data.map<UserMeEstatesAccounts>((Map<String, dynamic> e) =>
  704. UserMeEstatesAccounts.fromJson(e)).toList() as M;
  705. }
  706. if (<UserMeEstatesAccountsUnit>[] is M) {
  707. return data.map<UserMeEstatesAccountsUnit>((Map<String, dynamic> e) =>
  708. UserMeEstatesAccountsUnit.fromJson(e)).toList() as M;
  709. }
  710. if (<UserMeDefaultUnit>[] is M) {
  711. return data.map<UserMeDefaultUnit>((Map<String, dynamic> e) =>
  712. UserMeDefaultUnit.fromJson(e)).toList() as M;
  713. }
  714. if (<UserMeInformation>[] is M) {
  715. return data.map<UserMeInformation>((Map<String, dynamic> e) =>
  716. UserMeInformation.fromJson(e)).toList() as M;
  717. }
  718. if (<VisitorPageEntity>[] is M) {
  719. return data.map<VisitorPageEntity>((Map<String, dynamic> e) =>
  720. VisitorPageEntity.fromJson(e)).toList() as M;
  721. }
  722. if (<VisitorPageList>[] is M) {
  723. return data.map<VisitorPageList>((Map<String, dynamic> e) =>
  724. VisitorPageList.fromJson(e)).toList() as M;
  725. }
  726. debugPrint("$M not found");
  727. return null;
  728. }
  729. static M? fromJsonAsT<M>(dynamic json) {
  730. if (json is M) {
  731. return json;
  732. }
  733. if (json is List) {
  734. return _getListChildType<M>(
  735. json.map((dynamic e) => e as Map<String, dynamic>).toList());
  736. } else {
  737. return jsonConvert.convert<M>(json);
  738. }
  739. }
  740. }
  741. class JsonConvertClassCollection {
  742. Map<String, JsonConvertFunction> convertFuncMap = {
  743. (AuthLoginEntity).toString(): AuthLoginEntity.fromJson,
  744. (CaptchaImgEntity).toString(): CaptchaImgEntity.fromJson,
  745. (FacilityBookEntity).toString(): FacilityBookEntity.fromJson,
  746. (FacilityBookFacilityType).toString(): FacilityBookFacilityType.fromJson,
  747. (FacilityBookFacilities).toString(): FacilityBookFacilities.fromJson,
  748. (FacilityBookFacilitiesPeriods).toString(): FacilityBookFacilitiesPeriods
  749. .fromJson,
  750. (FacilityIndexEntity).toString(): FacilityIndexEntity.fromJson,
  751. (FacilityPageEntity).toString(): FacilityPageEntity.fromJson,
  752. (FacilityDetail).toString(): FacilityDetail.fromJson,
  753. (FacilityPageListBooking).toString(): FacilityPageListBooking.fromJson,
  754. (FacilityPageListFacility).toString(): FacilityPageListFacility.fromJson,
  755. (FacilityPageListFacilityType).toString(): FacilityPageListFacilityType
  756. .fromJson,
  757. (FacilityPageListTimePeriod).toString(): FacilityPageListTimePeriod
  758. .fromJson,
  759. (FacilityPageListAccount).toString(): FacilityPageListAccount.fromJson,
  760. (FeedbackDetailEntity).toString(): FeedbackDetailEntity.fromJson,
  761. (FeedbackDetailReplies).toString(): FeedbackDetailReplies.fromJson,
  762. (FeedbackListEntity).toString(): FeedbackListEntity.fromJson,
  763. (FeedbackItemEntity).toString(): FeedbackItemEntity.fromJson,
  764. (FormContentEntity).toString(): FormContentEntity.fromJson,
  765. (FormDetailEntity).toString(): FormDetailEntity.fromJson,
  766. (FormListEntity).toString(): FormListEntity.fromJson,
  767. (FormOptionEntity).toString(): FormOptionEntity.fromJson,
  768. (FormSubmittedEntity).toString(): FormSubmittedEntity.fromJson,
  769. (FormSubmittedEstateOnlineForm).toString(): FormSubmittedEstateOnlineForm
  770. .fromJson,
  771. (FormSubmittedPageEntity).toString(): FormSubmittedPageEntity.fromJson,
  772. (GarageSaleHistoryEntity).toString(): GarageSaleHistoryEntity.fromJson,
  773. (GarageSaleHistoryList).toString(): GarageSaleHistoryList.fromJson,
  774. (GarageSaleHistoryListOrderProducts)
  775. .toString(): GarageSaleHistoryListOrderProducts.fromJson,
  776. (GarageSaleRentDetailEntity).toString(): GarageSaleRentDetailEntity
  777. .fromJson,
  778. (GarageSaleRentDetailAccount).toString(): GarageSaleRentDetailAccount
  779. .fromJson,
  780. (GarageSaleRentEntity).toString(): GarageSaleRentEntity.fromJson,
  781. (GarageSaleRentList).toString(): GarageSaleRentList.fromJson,
  782. (GarageSaleRentListAccount).toString(): GarageSaleRentListAccount.fromJson,
  783. (HomeListEntity).toString(): HomeListEntity.fromJson,
  784. (HomeListBanners).toString(): HomeListBanners.fromJson,
  785. (HomeListLatestTransactions).toString(): HomeListLatestTransactions
  786. .fromJson,
  787. (HomeListPropertyNews).toString(): HomeListPropertyNews.fromJson,
  788. (IdNameEntity).toString(): IdNameEntity.fromJson,
  789. (LatestNewsDetailEntity).toString(): LatestNewsDetailEntity.fromJson,
  790. (LatestNewsPageEntity).toString(): LatestNewsPageEntity.fromJson,
  791. (LatestNewsList).toString(): LatestNewsList.fromJson,
  792. (MyfollowingListEntity).toString(): MyfollowingListEntity.fromJson,
  793. (MypostsNewsfeedEntity).toString(): MypostsNewsfeedEntity.fromJson,
  794. (MypostsNewsfeedList).toString(): MypostsNewsfeedList.fromJson,
  795. (MypostsNewsfeedListAccount).toString(): MypostsNewsfeedListAccount
  796. .fromJson,
  797. (MypostsSaleRentEntity).toString(): MypostsSaleRentEntity.fromJson,
  798. (MypostsSaleRentList).toString(): MypostsSaleRentList.fromJson,
  799. (NewsfeedCommentPublishEntity).toString(): NewsfeedCommentPublishEntity
  800. .fromJson,
  801. (NewsfeedDetailEntity).toString(): NewsfeedDetailEntity.fromJson,
  802. (NewsfeedDetailAccount).toString(): NewsfeedDetailAccount.fromJson,
  803. (NewsfeedDetailComments).toString(): NewsfeedDetailComments.fromJson,
  804. (NewsfeedDetailCommentsAccount).toString(): NewsfeedDetailCommentsAccount
  805. .fromJson,
  806. (NewsfeedDetailCommentsToAccount)
  807. .toString(): NewsfeedDetailCommentsToAccount.fromJson,
  808. (NewsfeedFollowingEntity).toString(): NewsfeedFollowingEntity.fromJson,
  809. (NewsfeedFollowingList).toString(): NewsfeedFollowingList.fromJson,
  810. (NewsfeedFollowingListAccount).toString(): NewsfeedFollowingListAccount
  811. .fromJson,
  812. (NewsfeedForyouEntity).toString(): NewsfeedForyouEntity.fromJson,
  813. (NewsfeedForyouList).toString(): NewsfeedForyouList.fromJson,
  814. (NewsfeedForyouListAccount).toString(): NewsfeedForyouListAccount.fromJson,
  815. (NewsfeedNewsEntity).toString(): NewsfeedNewsEntity.fromJson,
  816. (NewsfeedNewsList).toString(): NewsfeedNewsList.fromJson,
  817. (NewsfeedNewsListAccount).toString(): NewsfeedNewsListAccount.fromJson,
  818. (NoticeBoardAnnounDetailEntity).toString(): NoticeBoardAnnounDetailEntity
  819. .fromJson,
  820. (NoticeBoardAnnounEntity).toString(): NoticeBoardAnnounEntity.fromJson,
  821. (NoticeBoardAnnounList).toString(): NoticeBoardAnnounList.fromJson,
  822. (NoticeBoardDocumentsEntity).toString(): NoticeBoardDocumentsEntity
  823. .fromJson,
  824. (NoticeBoardDocumentsList).toString(): NoticeBoardDocumentsList.fromJson,
  825. (NoticeBoardEventDetailEntity).toString(): NoticeBoardEventDetailEntity
  826. .fromJson,
  827. (NoticeBoardEventEntity).toString(): NoticeBoardEventEntity.fromJson,
  828. (NoticeBoardEventList).toString(): NoticeBoardEventList.fromJson,
  829. (PaymentPageEntity).toString(): PaymentPageEntity.fromJson,
  830. (PaymentPageList).toString(): PaymentPageList.fromJson,
  831. (PropertyNewsDetailEntity).toString(): PropertyNewsDetailEntity.fromJson,
  832. (PropertyNewsEntity).toString(): PropertyNewsEntity.fromJson,
  833. (PropertyNewsList).toString(): PropertyNewsList.fromJson,
  834. (PropertySaleRentEntity).toString(): PropertySaleRentEntity.fromJson,
  835. (PropertySaleRentList).toString(): PropertySaleRentList.fromJson,
  836. (RewardsActiveDetailEntity).toString(): RewardsActiveDetailEntity.fromJson,
  837. (RewardsActiveDetailData).toString(): RewardsActiveDetailData.fromJson,
  838. (RewardsActiveDetailDataAccount).toString(): RewardsActiveDetailDataAccount
  839. .fromJson,
  840. (RewardsActiveDetailDataReward).toString(): RewardsActiveDetailDataReward
  841. .fromJson,
  842. (RewardsBuyEntity).toString(): RewardsBuyEntity.fromJson,
  843. (RewardsBuyReward).toString(): RewardsBuyReward.fromJson,
  844. (RewardsBuyRewardRedeemable).toString(): RewardsBuyRewardRedeemable
  845. .fromJson,
  846. (RewardsCategoryEntity).toString(): RewardsCategoryEntity.fromJson,
  847. (RewardsDetailEntity).toString(): RewardsDetailEntity.fromJson,
  848. (RewardsDetailRedeemable).toString(): RewardsDetailRedeemable.fromJson,
  849. (RewardsHistoryEarnedEntity).toString(): RewardsHistoryEarnedEntity
  850. .fromJson,
  851. (RewardsHistoryEarnedList).toString(): RewardsHistoryEarnedList.fromJson,
  852. (RewardsHomeEntity).toString(): RewardsHomeEntity.fromJson,
  853. (RewardsHomeData).toString(): RewardsHomeData.fromJson,
  854. (RewardsHomeDataRewards).toString(): RewardsHomeDataRewards.fromJson,
  855. (RewardsHomeTesEntity).toString(): RewardsHomeTesEntity.fromJson,
  856. (RewardsHomeTesRewards).toString(): RewardsHomeTesRewards.fromJson,
  857. (RewardsHomeTestEntity).toString(): RewardsHomeTestEntity.fromJson,
  858. (RewardsHomeTxEntity).toString(): RewardsHomeTxEntity.fromJson,
  859. (RewardsIndexEntity).toString(): RewardsIndexEntity.fromJson,
  860. (RewardsIndexContinuous).toString(): RewardsIndexContinuous.fromJson,
  861. (RewardsIndexTasks).toString(): RewardsIndexTasks.fromJson,
  862. (RewardsListEntity).toString(): RewardsListEntity.fromJson,
  863. (RewardsListList).toString(): RewardsListList.fromJson,
  864. (RewardsMyDetailEntity).toString(): RewardsMyDetailEntity.fromJson,
  865. (RewardsMyDetailAccount).toString(): RewardsMyDetailAccount.fromJson,
  866. (RewardsMyDetailReward).toString(): RewardsMyDetailReward.fromJson,
  867. (RewardsMyEntity).toString(): RewardsMyEntity.fromJson,
  868. (RewardsMyList).toString(): RewardsMyList.fromJson,
  869. (RewardsMyListReward).toString(): RewardsMyListReward.fromJson,
  870. (RewardsSearchEntity).toString(): RewardsSearchEntity.fromJson,
  871. (RewardsSearchRewards).toString(): RewardsSearchRewards.fromJson,
  872. (ServerTime).toString(): ServerTime.fromJson,
  873. (ServiceEvaluateListEntity).toString(): ServiceEvaluateListEntity.fromJson,
  874. (ServiceEvaluateListList).toString(): ServiceEvaluateListList.fromJson,
  875. (ServiceEvaluateListListAccount).toString(): ServiceEvaluateListListAccount
  876. .fromJson,
  877. (ServiceOrderDetailEntity).toString(): ServiceOrderDetailEntity.fromJson,
  878. (ServiceOrderDetailAccount).toString(): ServiceOrderDetailAccount.fromJson,
  879. (ServiceOrderDetailOrderService).toString(): ServiceOrderDetailOrderService
  880. .fromJson,
  881. (ServiceOrderDetailOrderProducts)
  882. .toString(): ServiceOrderDetailOrderProducts.fromJson,
  883. (ServiceOrderDetailEstate).toString(): ServiceOrderDetailEstate.fromJson,
  884. (ServiceOrderDetailEstateUnit).toString(): ServiceOrderDetailEstateUnit
  885. .fromJson,
  886. (ServiceRepairDetailEntity).toString(): ServiceRepairDetailEntity.fromJson,
  887. (ServiceRepairDetailMerchant).toString(): ServiceRepairDetailMerchant
  888. .fromJson,
  889. (ServiceRepairDetailCategory).toString(): ServiceRepairDetailCategory
  890. .fromJson,
  891. (TextKonEntity).toString(): TextKonEntity.fromJson,
  892. (UserMeEntity).toString(): UserMeEntity.fromJson,
  893. (UserMeHouseholds).toString(): UserMeHouseholds.fromJson,
  894. (UserMeEstates).toString(): UserMeEstates.fromJson,
  895. (UserMeEstatesAccounts).toString(): UserMeEstatesAccounts.fromJson,
  896. (UserMeEstatesAccountsUnit).toString(): UserMeEstatesAccountsUnit.fromJson,
  897. (UserMeDefaultUnit).toString(): UserMeDefaultUnit.fromJson,
  898. (UserMeInformation).toString(): UserMeInformation.fromJson,
  899. (VisitorPageEntity).toString(): VisitorPageEntity.fromJson,
  900. (VisitorPageList).toString(): VisitorPageList.fromJson,
  901. };
  902. bool containsKey(String type) {
  903. return convertFuncMap.containsKey(type);
  904. }
  905. JsonConvertFunction? operator [](String key) {
  906. return convertFuncMap[key];
  907. }
  908. }