json_convert_content.dart 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468
  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/id_name_entity.dart';
  22. import 'package:domain/entity/myfollowing_list_entity.dart';
  23. import 'package:domain/entity/myposts_newsfeed_entity.dart';
  24. import 'package:domain/entity/myposts_sale_rent_entity.dart';
  25. import 'package:domain/entity/newsfeed_comment_publish_entity.dart';
  26. import 'package:domain/entity/newsfeed_detail_entity.dart';
  27. import 'package:domain/entity/newsfeed_following_entity.dart';
  28. import 'package:domain/entity/newsfeed_foryou_entity.dart';
  29. import 'package:domain/entity/newsfeed_news_entity.dart';
  30. import 'package:domain/entity/notice_board_announ_entity.dart';
  31. import 'package:domain/entity/notice_board_documents_entity.dart';
  32. import 'package:domain/entity/notice_board_event_entity.dart';
  33. import 'package:domain/entity/property_news_entity.dart';
  34. import 'package:domain/entity/property_sale_rent_entity.dart';
  35. import 'package:domain/entity/server_time.dart';
  36. import 'package:domain/entity/user_me_entity.dart';
  37. import 'package:domain/entity/visitor_page_entity.dart';
  38. JsonConvert jsonConvert = JsonConvert();
  39. typedef JsonConvertFunction<T> = T Function(Map<String, dynamic> json);
  40. typedef EnumConvertFunction<T> = T Function(String value);
  41. typedef ConvertExceptionHandler = void Function(Object error, StackTrace stackTrace);
  42. extension MapSafeExt<K, V> on Map<K, V> {
  43. T? getOrNull<T>(K? key) {
  44. if (!containsKey(key) || key == null) {
  45. return null;
  46. } else {
  47. return this[key] as T?;
  48. }
  49. }
  50. }
  51. class JsonConvert {
  52. static ConvertExceptionHandler? onError;
  53. JsonConvertClassCollection convertFuncMap = JsonConvertClassCollection();
  54. /// 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
  55. /// https://flutter.cn/docs/development/tools/hot-reload
  56. /// class MyApp extends StatelessWidget {
  57. /// const MyApp({Key? key})
  58. /// : super(key: key);
  59. ///
  60. /// @override
  61. /// Widget build(BuildContext context) {
  62. /// jsonConvert.reassembleConvertFuncMap();
  63. /// return MaterialApp();
  64. /// }
  65. /// }
  66. void reassembleConvertFuncMap() {
  67. bool isReleaseMode = const bool.fromEnvironment('dart.vm.product');
  68. if (!isReleaseMode) {
  69. convertFuncMap = JsonConvertClassCollection();
  70. }
  71. }
  72. T? convert<T>(dynamic value, {EnumConvertFunction? enumConvert}) {
  73. if (value == null) {
  74. return null;
  75. }
  76. if (value is T) {
  77. return value;
  78. }
  79. try {
  80. return _asT<T>(value, enumConvert: enumConvert);
  81. } catch (e, stackTrace) {
  82. debugPrint('asT<$T> $e $stackTrace');
  83. if (onError != null) {
  84. onError!(e, stackTrace);
  85. }
  86. return null;
  87. }
  88. }
  89. List<T?>? convertList<T>(List<dynamic>? value, {EnumConvertFunction? enumConvert}) {
  90. if (value == null) {
  91. return null;
  92. }
  93. try {
  94. return value.map((dynamic e) => _asT<T>(e, enumConvert: enumConvert)).toList();
  95. } catch (e, stackTrace) {
  96. debugPrint('asT<$T> $e $stackTrace');
  97. if (onError != null) {
  98. onError!(e, stackTrace);
  99. }
  100. return <T>[];
  101. }
  102. }
  103. List<T>? convertListNotNull<T>(dynamic value, {EnumConvertFunction? enumConvert}) {
  104. if (value == null) {
  105. return null;
  106. }
  107. try {
  108. return (value as List<dynamic>).map((dynamic e) => _asT<T>(e, enumConvert: enumConvert)!).toList();
  109. } catch (e, stackTrace) {
  110. debugPrint('asT<$T> $e $stackTrace');
  111. if (onError != null) {
  112. onError!(e, stackTrace);
  113. }
  114. return <T>[];
  115. }
  116. }
  117. T? _asT<T extends Object?>(dynamic value,
  118. {EnumConvertFunction? enumConvert}) {
  119. final String type = T.toString();
  120. final String valueS = value.toString();
  121. if (enumConvert != null) {
  122. return enumConvert(valueS) as T;
  123. } else if (type == "String") {
  124. return valueS as T;
  125. } else if (type == "int") {
  126. final int? intValue = int.tryParse(valueS);
  127. if (intValue == null) {
  128. return double.tryParse(valueS)?.toInt() as T?;
  129. } else {
  130. return intValue as T;
  131. }
  132. } else if (type == "double") {
  133. return double.parse(valueS) as T;
  134. } else if (type == "DateTime") {
  135. return DateTime.parse(valueS) as T;
  136. } else if (type == "bool") {
  137. if (valueS == '0' || valueS == '1') {
  138. return (valueS == '1') as T;
  139. }
  140. return (valueS == 'true') as T;
  141. } else if (type == "Map" || type.startsWith("Map<")) {
  142. return value as T;
  143. } else {
  144. if (convertFuncMap.containsKey(type)) {
  145. if (value == null) {
  146. return null;
  147. }
  148. var covertFunc = convertFuncMap[type]!;
  149. if (covertFunc is Map<String, dynamic>) {
  150. return covertFunc(value as Map<String, dynamic>) as T;
  151. } else {
  152. return covertFunc(Map<String, dynamic>.from(value)) as T;
  153. }
  154. } else {
  155. throw UnimplementedError('$type unimplemented,you can try running the app again');
  156. }
  157. }
  158. }
  159. //list is returned by type
  160. static M? _getListChildType<M>(List<Map<String, dynamic>> data) {
  161. if (<AuthLoginEntity>[] is M) {
  162. return data.map<AuthLoginEntity>((Map<String, dynamic> e) => AuthLoginEntity.fromJson(e)).toList() as M;
  163. }
  164. if (<CaptchaImgEntity>[] is M) {
  165. return data.map<CaptchaImgEntity>((Map<String, dynamic> e) => CaptchaImgEntity.fromJson(e)).toList() as M;
  166. }
  167. if (<FacilityBookEntity>[] is M) {
  168. return data.map<FacilityBookEntity>((Map<String, dynamic> e) => FacilityBookEntity.fromJson(e)).toList() as M;
  169. }
  170. if (<FacilityBookFacilityType>[] is M) {
  171. return data.map<FacilityBookFacilityType>((Map<String, dynamic> e) => FacilityBookFacilityType.fromJson(e)).toList() as M;
  172. }
  173. if (<FacilityBookFacilities>[] is M) {
  174. return data.map<FacilityBookFacilities>((Map<String, dynamic> e) => FacilityBookFacilities.fromJson(e)).toList() as M;
  175. }
  176. if (<FacilityBookFacilitiesPeriods>[] is M) {
  177. return data.map<FacilityBookFacilitiesPeriods>((Map<String, dynamic> e) => FacilityBookFacilitiesPeriods.fromJson(e)).toList() as M;
  178. }
  179. if (<FacilityIndexEntity>[] is M) {
  180. return data.map<FacilityIndexEntity>((Map<String, dynamic> e) => FacilityIndexEntity.fromJson(e)).toList() as M;
  181. }
  182. if (<FacilityPageEntity>[] is M) {
  183. return data.map<FacilityPageEntity>((Map<String, dynamic> e) => FacilityPageEntity.fromJson(e)).toList() as M;
  184. }
  185. if (<FacilityDetail>[] is M) {
  186. return data.map<FacilityDetail>((Map<String, dynamic> e) => FacilityDetail.fromJson(e)).toList() as M;
  187. }
  188. if (<FacilityPageListBooking>[] is M) {
  189. return data.map<FacilityPageListBooking>((Map<String, dynamic> e) => FacilityPageListBooking.fromJson(e)).toList() as M;
  190. }
  191. if (<FacilityPageListFacility>[] is M) {
  192. return data.map<FacilityPageListFacility>((Map<String, dynamic> e) => FacilityPageListFacility.fromJson(e)).toList() as M;
  193. }
  194. if (<FacilityPageListFacilityType>[] is M) {
  195. return data.map<FacilityPageListFacilityType>((Map<String, dynamic> e) => FacilityPageListFacilityType.fromJson(e)).toList() as M;
  196. }
  197. if (<FacilityPageListTimePeriod>[] is M) {
  198. return data.map<FacilityPageListTimePeriod>((Map<String, dynamic> e) => FacilityPageListTimePeriod.fromJson(e)).toList() as M;
  199. }
  200. if (<FacilityPageListAccount>[] is M) {
  201. return data.map<FacilityPageListAccount>((Map<String, dynamic> e) => FacilityPageListAccount.fromJson(e)).toList() as M;
  202. }
  203. if (<FeedbackDetailEntity>[] is M) {
  204. return data.map<FeedbackDetailEntity>((Map<String, dynamic> e) => FeedbackDetailEntity.fromJson(e)).toList() as M;
  205. }
  206. if (<FeedbackDetailReplies>[] is M) {
  207. return data.map<FeedbackDetailReplies>((Map<String, dynamic> e) => FeedbackDetailReplies.fromJson(e)).toList() as M;
  208. }
  209. if (<FeedbackListEntity>[] is M) {
  210. return data.map<FeedbackListEntity>((Map<String, dynamic> e) => FeedbackListEntity.fromJson(e)).toList() as M;
  211. }
  212. if (<FeedbackItemEntity>[] is M) {
  213. return data.map<FeedbackItemEntity>((Map<String, dynamic> e) => FeedbackItemEntity.fromJson(e)).toList() as M;
  214. }
  215. if (<FormContentEntity>[] is M) {
  216. return data.map<FormContentEntity>((Map<String, dynamic> e) => FormContentEntity.fromJson(e)).toList() as M;
  217. }
  218. if (<FormDetailEntity>[] is M) {
  219. return data.map<FormDetailEntity>((Map<String, dynamic> e) => FormDetailEntity.fromJson(e)).toList() as M;
  220. }
  221. if (<FormListEntity>[] is M) {
  222. return data.map<FormListEntity>((Map<String, dynamic> e) => FormListEntity.fromJson(e)).toList() as M;
  223. }
  224. if (<FormOptionEntity>[] is M) {
  225. return data.map<FormOptionEntity>((Map<String, dynamic> e) => FormOptionEntity.fromJson(e)).toList() as M;
  226. }
  227. if (<FormSubmittedEntity>[] is M) {
  228. return data.map<FormSubmittedEntity>((Map<String, dynamic> e) => FormSubmittedEntity.fromJson(e)).toList() as M;
  229. }
  230. if (<FormSubmittedEstateOnlineForm>[] is M) {
  231. return data.map<FormSubmittedEstateOnlineForm>((Map<String, dynamic> e) => FormSubmittedEstateOnlineForm.fromJson(e)).toList() as M;
  232. }
  233. if (<FormSubmittedPageEntity>[] is M) {
  234. return data.map<FormSubmittedPageEntity>((Map<String, dynamic> e) => FormSubmittedPageEntity.fromJson(e)).toList() as M;
  235. }
  236. if (<GarageSaleRentDetailEntity>[] is M) {
  237. return data.map<GarageSaleRentDetailEntity>((Map<String, dynamic> e) => GarageSaleRentDetailEntity.fromJson(e)).toList() as M;
  238. }
  239. if (<GarageSaleRentDetailAccount>[] is M) {
  240. return data.map<GarageSaleRentDetailAccount>((Map<String, dynamic> e) => GarageSaleRentDetailAccount.fromJson(e)).toList() as M;
  241. }
  242. if (<GarageSaleRentEntity>[] is M) {
  243. return data.map<GarageSaleRentEntity>((Map<String, dynamic> e) => GarageSaleRentEntity.fromJson(e)).toList() as M;
  244. }
  245. if (<GarageSaleRentAccount>[] is M) {
  246. return data.map<GarageSaleRentAccount>((Map<String, dynamic> e) => GarageSaleRentAccount.fromJson(e)).toList() as M;
  247. }
  248. if (<IdNameEntity>[] is M) {
  249. return data.map<IdNameEntity>((Map<String, dynamic> e) => IdNameEntity.fromJson(e)).toList() as M;
  250. }
  251. if (<MyfollowingListEntity>[] is M) {
  252. return data.map<MyfollowingListEntity>((Map<String, dynamic> e) => MyfollowingListEntity.fromJson(e)).toList() as M;
  253. }
  254. if (<MypostsNewsfeedEntity>[] is M) {
  255. return data.map<MypostsNewsfeedEntity>((Map<String, dynamic> e) => MypostsNewsfeedEntity.fromJson(e)).toList() as M;
  256. }
  257. if (<MypostsNewsfeedList>[] is M) {
  258. return data.map<MypostsNewsfeedList>((Map<String, dynamic> e) => MypostsNewsfeedList.fromJson(e)).toList() as M;
  259. }
  260. if (<MypostsNewsfeedListAccount>[] is M) {
  261. return data.map<MypostsNewsfeedListAccount>((Map<String, dynamic> e) => MypostsNewsfeedListAccount.fromJson(e)).toList() as M;
  262. }
  263. if (<MypostsSaleRentEntity>[] is M) {
  264. return data.map<MypostsSaleRentEntity>((Map<String, dynamic> e) => MypostsSaleRentEntity.fromJson(e)).toList() as M;
  265. }
  266. if (<NewsfeedCommentPublishEntity>[] is M) {
  267. return data.map<NewsfeedCommentPublishEntity>((Map<String, dynamic> e) => NewsfeedCommentPublishEntity.fromJson(e)).toList() as M;
  268. }
  269. if (<NewsfeedDetailEntity>[] is M) {
  270. return data.map<NewsfeedDetailEntity>((Map<String, dynamic> e) => NewsfeedDetailEntity.fromJson(e)).toList() as M;
  271. }
  272. if (<NewsfeedDetailAccount>[] is M) {
  273. return data.map<NewsfeedDetailAccount>((Map<String, dynamic> e) => NewsfeedDetailAccount.fromJson(e)).toList() as M;
  274. }
  275. if (<NewsfeedDetailComments>[] is M) {
  276. return data.map<NewsfeedDetailComments>((Map<String, dynamic> e) => NewsfeedDetailComments.fromJson(e)).toList() as M;
  277. }
  278. if (<NewsfeedDetailCommentsAccount>[] is M) {
  279. return data.map<NewsfeedDetailCommentsAccount>((Map<String, dynamic> e) => NewsfeedDetailCommentsAccount.fromJson(e)).toList() as M;
  280. }
  281. if (<NewsfeedDetailCommentsToAccount>[] is M) {
  282. return data.map<NewsfeedDetailCommentsToAccount>((Map<String, dynamic> e) => NewsfeedDetailCommentsToAccount.fromJson(e)).toList() as M;
  283. }
  284. if (<NewsfeedFollowingEntity>[] is M) {
  285. return data.map<NewsfeedFollowingEntity>((Map<String, dynamic> e) => NewsfeedFollowingEntity.fromJson(e)).toList() as M;
  286. }
  287. if (<NewsfeedFollowingList>[] is M) {
  288. return data.map<NewsfeedFollowingList>((Map<String, dynamic> e) => NewsfeedFollowingList.fromJson(e)).toList() as M;
  289. }
  290. if (<NewsfeedFollowingListAccount>[] is M) {
  291. return data.map<NewsfeedFollowingListAccount>((Map<String, dynamic> e) => NewsfeedFollowingListAccount.fromJson(e)).toList() as M;
  292. }
  293. if (<NewsfeedForyouEntity>[] is M) {
  294. return data.map<NewsfeedForyouEntity>((Map<String, dynamic> e) => NewsfeedForyouEntity.fromJson(e)).toList() as M;
  295. }
  296. if (<NewsfeedForyouList>[] is M) {
  297. return data.map<NewsfeedForyouList>((Map<String, dynamic> e) => NewsfeedForyouList.fromJson(e)).toList() as M;
  298. }
  299. if (<NewsfeedForyouListAccount>[] is M) {
  300. return data.map<NewsfeedForyouListAccount>((Map<String, dynamic> e) => NewsfeedForyouListAccount.fromJson(e)).toList() as M;
  301. }
  302. if (<NewsfeedNewsEntity>[] is M) {
  303. return data.map<NewsfeedNewsEntity>((Map<String, dynamic> e) => NewsfeedNewsEntity.fromJson(e)).toList() as M;
  304. }
  305. if (<NewsfeedNewsList>[] is M) {
  306. return data.map<NewsfeedNewsList>((Map<String, dynamic> e) => NewsfeedNewsList.fromJson(e)).toList() as M;
  307. }
  308. if (<NewsfeedNewsListAccount>[] is M) {
  309. return data.map<NewsfeedNewsListAccount>((Map<String, dynamic> e) => NewsfeedNewsListAccount.fromJson(e)).toList() as M;
  310. }
  311. if (<NoticeBoardAnnounEntity>[] is M) {
  312. return data.map<NoticeBoardAnnounEntity>((Map<String, dynamic> e) => NoticeBoardAnnounEntity.fromJson(e)).toList() as M;
  313. }
  314. if (<NoticeBoardDocumentsEntity>[] is M) {
  315. return data.map<NoticeBoardDocumentsEntity>((Map<String, dynamic> e) => NoticeBoardDocumentsEntity.fromJson(e)).toList() as M;
  316. }
  317. if (<NoticeBoardEventEntity>[] is M) {
  318. return data.map<NoticeBoardEventEntity>((Map<String, dynamic> e) => NoticeBoardEventEntity.fromJson(e)).toList() as M;
  319. }
  320. if (<PropertyNewsEntity>[] is M) {
  321. return data.map<PropertyNewsEntity>((Map<String, dynamic> e) => PropertyNewsEntity.fromJson(e)).toList() as M;
  322. }
  323. if (<PropertyNewsList>[] is M) {
  324. return data.map<PropertyNewsList>((Map<String, dynamic> e) => PropertyNewsList.fromJson(e)).toList() as M;
  325. }
  326. if (<PropertySaleRentEntity>[] is M) {
  327. return data.map<PropertySaleRentEntity>((Map<String, dynamic> e) => PropertySaleRentEntity.fromJson(e)).toList() as M;
  328. }
  329. if (<PropertySaleRentList>[] is M) {
  330. return data.map<PropertySaleRentList>((Map<String, dynamic> e) => PropertySaleRentList.fromJson(e)).toList() as M;
  331. }
  332. if (<ServerTime>[] is M) {
  333. return data.map<ServerTime>((Map<String, dynamic> e) => ServerTime.fromJson(e)).toList() as M;
  334. }
  335. if (<UserMeEntity>[] is M) {
  336. return data.map<UserMeEntity>((Map<String, dynamic> e) => UserMeEntity.fromJson(e)).toList() as M;
  337. }
  338. if (<UserMeHouseholds>[] is M) {
  339. return data.map<UserMeHouseholds>((Map<String, dynamic> e) => UserMeHouseholds.fromJson(e)).toList() as M;
  340. }
  341. if (<UserMeEstates>[] is M) {
  342. return data.map<UserMeEstates>((Map<String, dynamic> e) => UserMeEstates.fromJson(e)).toList() as M;
  343. }
  344. if (<UserMeEstatesAccounts>[] is M) {
  345. return data.map<UserMeEstatesAccounts>((Map<String, dynamic> e) => UserMeEstatesAccounts.fromJson(e)).toList() as M;
  346. }
  347. if (<UserMeEstatesAccountsUnit>[] is M) {
  348. return data.map<UserMeEstatesAccountsUnit>((Map<String, dynamic> e) => UserMeEstatesAccountsUnit.fromJson(e)).toList() as M;
  349. }
  350. if (<UserMeDefaultUnit>[] is M) {
  351. return data.map<UserMeDefaultUnit>((Map<String, dynamic> e) => UserMeDefaultUnit.fromJson(e)).toList() as M;
  352. }
  353. if (<UserMeInformation>[] is M) {
  354. return data.map<UserMeInformation>((Map<String, dynamic> e) => UserMeInformation.fromJson(e)).toList() as M;
  355. }
  356. if (<VisitorPageEntity>[] is M) {
  357. return data.map<VisitorPageEntity>((Map<String, dynamic> e) => VisitorPageEntity.fromJson(e)).toList() as M;
  358. }
  359. if (<VisitorPageList>[] is M) {
  360. return data.map<VisitorPageList>((Map<String, dynamic> e) => VisitorPageList.fromJson(e)).toList() as M;
  361. }
  362. debugPrint("$M not found");
  363. return null;
  364. }
  365. static M? fromJsonAsT<M>(dynamic json) {
  366. if (json is M) {
  367. return json;
  368. }
  369. if (json is List) {
  370. return _getListChildType<M>(json.map((dynamic e) => e as Map<String, dynamic>).toList());
  371. } else {
  372. return jsonConvert.convert<M>(json);
  373. }
  374. }
  375. }
  376. class JsonConvertClassCollection {
  377. Map<String, JsonConvertFunction> convertFuncMap = {
  378. (AuthLoginEntity).toString(): AuthLoginEntity.fromJson,
  379. (CaptchaImgEntity).toString(): CaptchaImgEntity.fromJson,
  380. (FacilityBookEntity).toString(): FacilityBookEntity.fromJson,
  381. (FacilityBookFacilityType).toString(): FacilityBookFacilityType.fromJson,
  382. (FacilityBookFacilities).toString(): FacilityBookFacilities.fromJson,
  383. (FacilityBookFacilitiesPeriods).toString(): FacilityBookFacilitiesPeriods.fromJson,
  384. (FacilityIndexEntity).toString(): FacilityIndexEntity.fromJson,
  385. (FacilityPageEntity).toString(): FacilityPageEntity.fromJson,
  386. (FacilityDetail).toString(): FacilityDetail.fromJson,
  387. (FacilityPageListBooking).toString(): FacilityPageListBooking.fromJson,
  388. (FacilityPageListFacility).toString(): FacilityPageListFacility.fromJson,
  389. (FacilityPageListFacilityType).toString(): FacilityPageListFacilityType.fromJson,
  390. (FacilityPageListTimePeriod).toString(): FacilityPageListTimePeriod.fromJson,
  391. (FacilityPageListAccount).toString(): FacilityPageListAccount.fromJson,
  392. (FeedbackDetailEntity).toString(): FeedbackDetailEntity.fromJson,
  393. (FeedbackDetailReplies).toString(): FeedbackDetailReplies.fromJson,
  394. (FeedbackListEntity).toString(): FeedbackListEntity.fromJson,
  395. (FeedbackItemEntity).toString(): FeedbackItemEntity.fromJson,
  396. (FormContentEntity).toString(): FormContentEntity.fromJson,
  397. (FormDetailEntity).toString(): FormDetailEntity.fromJson,
  398. (FormListEntity).toString(): FormListEntity.fromJson,
  399. (FormOptionEntity).toString(): FormOptionEntity.fromJson,
  400. (FormSubmittedEntity).toString(): FormSubmittedEntity.fromJson,
  401. (FormSubmittedEstateOnlineForm).toString(): FormSubmittedEstateOnlineForm.fromJson,
  402. (FormSubmittedPageEntity).toString(): FormSubmittedPageEntity.fromJson,
  403. (GarageSaleRentDetailEntity).toString(): GarageSaleRentDetailEntity.fromJson,
  404. (GarageSaleRentDetailAccount).toString(): GarageSaleRentDetailAccount.fromJson,
  405. (GarageSaleRentEntity).toString(): GarageSaleRentEntity.fromJson,
  406. (GarageSaleRentAccount).toString(): GarageSaleRentAccount.fromJson,
  407. (IdNameEntity).toString(): IdNameEntity.fromJson,
  408. (MyfollowingListEntity).toString(): MyfollowingListEntity.fromJson,
  409. (MypostsNewsfeedEntity).toString(): MypostsNewsfeedEntity.fromJson,
  410. (MypostsNewsfeedList).toString(): MypostsNewsfeedList.fromJson,
  411. (MypostsNewsfeedListAccount).toString(): MypostsNewsfeedListAccount.fromJson,
  412. (MypostsSaleRentEntity).toString(): MypostsSaleRentEntity.fromJson,
  413. (NewsfeedCommentPublishEntity).toString(): NewsfeedCommentPublishEntity.fromJson,
  414. (NewsfeedDetailEntity).toString(): NewsfeedDetailEntity.fromJson,
  415. (NewsfeedDetailAccount).toString(): NewsfeedDetailAccount.fromJson,
  416. (NewsfeedDetailComments).toString(): NewsfeedDetailComments.fromJson,
  417. (NewsfeedDetailCommentsAccount).toString(): NewsfeedDetailCommentsAccount.fromJson,
  418. (NewsfeedDetailCommentsToAccount).toString(): NewsfeedDetailCommentsToAccount.fromJson,
  419. (NewsfeedFollowingEntity).toString(): NewsfeedFollowingEntity.fromJson,
  420. (NewsfeedFollowingList).toString(): NewsfeedFollowingList.fromJson,
  421. (NewsfeedFollowingListAccount).toString(): NewsfeedFollowingListAccount.fromJson,
  422. (NewsfeedForyouEntity).toString(): NewsfeedForyouEntity.fromJson,
  423. (NewsfeedForyouList).toString(): NewsfeedForyouList.fromJson,
  424. (NewsfeedForyouListAccount).toString(): NewsfeedForyouListAccount.fromJson,
  425. (NewsfeedNewsEntity).toString(): NewsfeedNewsEntity.fromJson,
  426. (NewsfeedNewsList).toString(): NewsfeedNewsList.fromJson,
  427. (NewsfeedNewsListAccount).toString(): NewsfeedNewsListAccount.fromJson,
  428. (NoticeBoardAnnounEntity).toString(): NoticeBoardAnnounEntity.fromJson,
  429. (NoticeBoardDocumentsEntity).toString(): NoticeBoardDocumentsEntity.fromJson,
  430. (NoticeBoardEventEntity).toString(): NoticeBoardEventEntity.fromJson,
  431. (PropertyNewsEntity).toString(): PropertyNewsEntity.fromJson,
  432. (PropertyNewsList).toString(): PropertyNewsList.fromJson,
  433. (PropertySaleRentEntity).toString(): PropertySaleRentEntity.fromJson,
  434. (PropertySaleRentList).toString(): PropertySaleRentList.fromJson,
  435. (ServerTime).toString(): ServerTime.fromJson,
  436. (UserMeEntity).toString(): UserMeEntity.fromJson,
  437. (UserMeHouseholds).toString(): UserMeHouseholds.fromJson,
  438. (UserMeEstates).toString(): UserMeEstates.fromJson,
  439. (UserMeEstatesAccounts).toString(): UserMeEstatesAccounts.fromJson,
  440. (UserMeEstatesAccountsUnit).toString(): UserMeEstatesAccountsUnit.fromJson,
  441. (UserMeDefaultUnit).toString(): UserMeDefaultUnit.fromJson,
  442. (UserMeInformation).toString(): UserMeInformation.fromJson,
  443. (VisitorPageEntity).toString(): VisitorPageEntity.fromJson,
  444. (VisitorPageList).toString(): VisitorPageList.fromJson,
  445. };
  446. bool containsKey(String type) {
  447. return convertFuncMap.containsKey(type);
  448. }
  449. JsonConvertFunction? operator [](String key) {
  450. return convertFuncMap[key];
  451. }
  452. }