json_convert_content.dart 22 KB

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