json_convert_content.dart 23 KB

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