json_convert_content.dart 48 KB

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