json_convert_content.dart 43 KB

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