|
@@ -103,14 +103,12 @@ class JsonConvert {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- List<T?>? convertList<T>(List<dynamic>? value,
|
|
|
- {EnumConvertFunction? enumConvert}) {
|
|
|
+ List<T?>? convertList<T>(List<dynamic>? value, {EnumConvertFunction? enumConvert}) {
|
|
|
if (value == null) {
|
|
|
return null;
|
|
|
}
|
|
|
try {
|
|
|
- return value.map((dynamic e) => _asT<T>(e, enumConvert: enumConvert))
|
|
|
- .toList();
|
|
|
+ return value.map((dynamic e) => _asT<T>(e, enumConvert: enumConvert)).toList();
|
|
|
} catch (e, stackTrace) {
|
|
|
debugPrint('asT<$T> $e $stackTrace');
|
|
|
if (onError != null) {
|
|
@@ -120,14 +118,12 @@ class JsonConvert {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- List<T>? convertListNotNull<T>(dynamic value,
|
|
|
- {EnumConvertFunction? enumConvert}) {
|
|
|
+ List<T>? convertListNotNull<T>(dynamic value, {EnumConvertFunction? enumConvert}) {
|
|
|
if (value == null) {
|
|
|
return null;
|
|
|
}
|
|
|
try {
|
|
|
- return (value as List<dynamic>).map((dynamic e) =>
|
|
|
- _asT<T>(e, enumConvert: enumConvert)!).toList();
|
|
|
+ return (value as List<dynamic>).map((dynamic e) => _asT<T>(e, enumConvert: enumConvert)!).toList();
|
|
|
} catch (e, stackTrace) {
|
|
|
debugPrint('asT<$T> $e $stackTrace');
|
|
|
if (onError != null) {
|
|
@@ -175,8 +171,7 @@ class JsonConvert {
|
|
|
return covertFunc(Map<String, dynamic>.from(value)) as T;
|
|
|
}
|
|
|
} else {
|
|
|
- throw UnimplementedError(
|
|
|
- '$type unimplemented,you can try running the app again');
|
|
|
+ throw UnimplementedError('$type unimplemented,you can try running the app again');
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -184,225 +179,169 @@ class JsonConvert {
|
|
|
//list is returned by type
|
|
|
static M? _getListChildType<M>(List<Map<String, dynamic>> data) {
|
|
|
if (<AuthLoginEntity>[] is M) {
|
|
|
- return data.map<AuthLoginEntity>((Map<String, dynamic> e) =>
|
|
|
- AuthLoginEntity.fromJson(e)).toList() as M;
|
|
|
+ return data.map<AuthLoginEntity>((Map<String, dynamic> e) => AuthLoginEntity.fromJson(e)).toList() as M;
|
|
|
}
|
|
|
if (<CaptchaImgEntity>[] is M) {
|
|
|
- return data.map<CaptchaImgEntity>((Map<String, dynamic> e) =>
|
|
|
- CaptchaImgEntity.fromJson(e)).toList() as M;
|
|
|
+ return data.map<CaptchaImgEntity>((Map<String, dynamic> e) => CaptchaImgEntity.fromJson(e)).toList() as M;
|
|
|
}
|
|
|
if (<FacilityBookEntity>[] is M) {
|
|
|
- return data.map<FacilityBookEntity>((Map<String, dynamic> e) =>
|
|
|
- FacilityBookEntity.fromJson(e)).toList() as M;
|
|
|
+ return data.map<FacilityBookEntity>((Map<String, dynamic> e) => FacilityBookEntity.fromJson(e)).toList() as M;
|
|
|
}
|
|
|
if (<FacilityBookFacilityType>[] is M) {
|
|
|
- return data.map<FacilityBookFacilityType>((Map<String, dynamic> e) =>
|
|
|
- FacilityBookFacilityType.fromJson(e)).toList() as M;
|
|
|
+ return data.map<FacilityBookFacilityType>((Map<String, dynamic> e) => FacilityBookFacilityType.fromJson(e)).toList() as M;
|
|
|
}
|
|
|
if (<FacilityBookFacilities>[] is M) {
|
|
|
- return data.map<FacilityBookFacilities>((Map<String, dynamic> e) =>
|
|
|
- FacilityBookFacilities.fromJson(e)).toList() as M;
|
|
|
+ return data.map<FacilityBookFacilities>((Map<String, dynamic> e) => FacilityBookFacilities.fromJson(e)).toList() as M;
|
|
|
}
|
|
|
if (<FacilityBookFacilitiesPeriods>[] is M) {
|
|
|
- return data.map<FacilityBookFacilitiesPeriods>((Map<String, dynamic> e) =>
|
|
|
- FacilityBookFacilitiesPeriods.fromJson(e)).toList() as M;
|
|
|
+ return data.map<FacilityBookFacilitiesPeriods>((Map<String, dynamic> e) => FacilityBookFacilitiesPeriods.fromJson(e)).toList() as M;
|
|
|
}
|
|
|
if (<FacilityIndexEntity>[] is M) {
|
|
|
- return data.map<FacilityIndexEntity>((Map<String, dynamic> e) =>
|
|
|
- FacilityIndexEntity.fromJson(e)).toList() as M;
|
|
|
+ return data.map<FacilityIndexEntity>((Map<String, dynamic> e) => FacilityIndexEntity.fromJson(e)).toList() as M;
|
|
|
}
|
|
|
if (<FacilityPageEntity>[] is M) {
|
|
|
- return data.map<FacilityPageEntity>((Map<String, dynamic> e) =>
|
|
|
- FacilityPageEntity.fromJson(e)).toList() as M;
|
|
|
+ return data.map<FacilityPageEntity>((Map<String, dynamic> e) => FacilityPageEntity.fromJson(e)).toList() as M;
|
|
|
}
|
|
|
if (<FacilityDetail>[] is M) {
|
|
|
- return data.map<FacilityDetail>((Map<String, dynamic> e) =>
|
|
|
- FacilityDetail.fromJson(e)).toList() as M;
|
|
|
+ return data.map<FacilityDetail>((Map<String, dynamic> e) => FacilityDetail.fromJson(e)).toList() as M;
|
|
|
}
|
|
|
if (<FacilityPageListBooking>[] is M) {
|
|
|
- return data.map<FacilityPageListBooking>((Map<String, dynamic> e) =>
|
|
|
- FacilityPageListBooking.fromJson(e)).toList() as M;
|
|
|
+ return data.map<FacilityPageListBooking>((Map<String, dynamic> e) => FacilityPageListBooking.fromJson(e)).toList() as M;
|
|
|
}
|
|
|
if (<FacilityPageListFacility>[] is M) {
|
|
|
- return data.map<FacilityPageListFacility>((Map<String, dynamic> e) =>
|
|
|
- FacilityPageListFacility.fromJson(e)).toList() as M;
|
|
|
+ return data.map<FacilityPageListFacility>((Map<String, dynamic> e) => FacilityPageListFacility.fromJson(e)).toList() as M;
|
|
|
}
|
|
|
if (<FacilityPageListFacilityType>[] is M) {
|
|
|
- return data.map<FacilityPageListFacilityType>((Map<String, dynamic> e) =>
|
|
|
- FacilityPageListFacilityType.fromJson(e)).toList() as M;
|
|
|
+ return data.map<FacilityPageListFacilityType>((Map<String, dynamic> e) => FacilityPageListFacilityType.fromJson(e)).toList() as M;
|
|
|
}
|
|
|
if (<FacilityPageListTimePeriod>[] is M) {
|
|
|
- return data.map<FacilityPageListTimePeriod>((Map<String, dynamic> e) =>
|
|
|
- FacilityPageListTimePeriod.fromJson(e)).toList() as M;
|
|
|
+ return data.map<FacilityPageListTimePeriod>((Map<String, dynamic> e) => FacilityPageListTimePeriod.fromJson(e)).toList() as M;
|
|
|
}
|
|
|
if (<FacilityPageListAccount>[] is M) {
|
|
|
- return data.map<FacilityPageListAccount>((Map<String, dynamic> e) =>
|
|
|
- FacilityPageListAccount.fromJson(e)).toList() as M;
|
|
|
+ return data.map<FacilityPageListAccount>((Map<String, dynamic> e) => FacilityPageListAccount.fromJson(e)).toList() as M;
|
|
|
}
|
|
|
if (<FeedbackDetailEntity>[] is M) {
|
|
|
- return data.map<FeedbackDetailEntity>((Map<String, dynamic> e) =>
|
|
|
- FeedbackDetailEntity.fromJson(e)).toList() as M;
|
|
|
+ return data.map<FeedbackDetailEntity>((Map<String, dynamic> e) => FeedbackDetailEntity.fromJson(e)).toList() as M;
|
|
|
}
|
|
|
if (<FeedbackDetailReplies>[] is M) {
|
|
|
- return data.map<FeedbackDetailReplies>((Map<String, dynamic> e) =>
|
|
|
- FeedbackDetailReplies.fromJson(e)).toList() as M;
|
|
|
+ return data.map<FeedbackDetailReplies>((Map<String, dynamic> e) => FeedbackDetailReplies.fromJson(e)).toList() as M;
|
|
|
}
|
|
|
if (<FeedbackListEntity>[] is M) {
|
|
|
- return data.map<FeedbackListEntity>((Map<String, dynamic> e) =>
|
|
|
- FeedbackListEntity.fromJson(e)).toList() as M;
|
|
|
+ return data.map<FeedbackListEntity>((Map<String, dynamic> e) => FeedbackListEntity.fromJson(e)).toList() as M;
|
|
|
}
|
|
|
if (<FeedbackItemEntity>[] is M) {
|
|
|
- return data.map<FeedbackItemEntity>((Map<String, dynamic> e) =>
|
|
|
- FeedbackItemEntity.fromJson(e)).toList() as M;
|
|
|
+ return data.map<FeedbackItemEntity>((Map<String, dynamic> e) => FeedbackItemEntity.fromJson(e)).toList() as M;
|
|
|
}
|
|
|
if (<FormContentEntity>[] is M) {
|
|
|
- return data.map<FormContentEntity>((Map<String, dynamic> e) =>
|
|
|
- FormContentEntity.fromJson(e)).toList() as M;
|
|
|
+ return data.map<FormContentEntity>((Map<String, dynamic> e) => FormContentEntity.fromJson(e)).toList() as M;
|
|
|
}
|
|
|
if (<FormDetailEntity>[] is M) {
|
|
|
- return data.map<FormDetailEntity>((Map<String, dynamic> e) =>
|
|
|
- FormDetailEntity.fromJson(e)).toList() as M;
|
|
|
+ return data.map<FormDetailEntity>((Map<String, dynamic> e) => FormDetailEntity.fromJson(e)).toList() as M;
|
|
|
}
|
|
|
if (<FormListEntity>[] is M) {
|
|
|
- return data.map<FormListEntity>((Map<String, dynamic> e) =>
|
|
|
- FormListEntity.fromJson(e)).toList() as M;
|
|
|
+ return data.map<FormListEntity>((Map<String, dynamic> e) => FormListEntity.fromJson(e)).toList() as M;
|
|
|
}
|
|
|
if (<FormOptionEntity>[] is M) {
|
|
|
- return data.map<FormOptionEntity>((Map<String, dynamic> e) =>
|
|
|
- FormOptionEntity.fromJson(e)).toList() as M;
|
|
|
+ return data.map<FormOptionEntity>((Map<String, dynamic> e) => FormOptionEntity.fromJson(e)).toList() as M;
|
|
|
}
|
|
|
if (<FormSubmittedEntity>[] is M) {
|
|
|
- return data.map<FormSubmittedEntity>((Map<String, dynamic> e) =>
|
|
|
- FormSubmittedEntity.fromJson(e)).toList() as M;
|
|
|
+ return data.map<FormSubmittedEntity>((Map<String, dynamic> e) => FormSubmittedEntity.fromJson(e)).toList() as M;
|
|
|
}
|
|
|
if (<FormSubmittedEstateOnlineForm>[] is M) {
|
|
|
- return data.map<FormSubmittedEstateOnlineForm>((Map<String, dynamic> e) =>
|
|
|
- FormSubmittedEstateOnlineForm.fromJson(e)).toList() as M;
|
|
|
+ return data.map<FormSubmittedEstateOnlineForm>((Map<String, dynamic> e) => FormSubmittedEstateOnlineForm.fromJson(e)).toList() as M;
|
|
|
}
|
|
|
if (<FormSubmittedPageEntity>[] is M) {
|
|
|
- return data.map<FormSubmittedPageEntity>((Map<String, dynamic> e) =>
|
|
|
- FormSubmittedPageEntity.fromJson(e)).toList() as M;
|
|
|
+ return data.map<FormSubmittedPageEntity>((Map<String, dynamic> e) => FormSubmittedPageEntity.fromJson(e)).toList() as M;
|
|
|
}
|
|
|
if (<GarageSaleRentDetailEntity>[] is M) {
|
|
|
- return data.map<GarageSaleRentDetailEntity>((Map<String, dynamic> e) =>
|
|
|
- GarageSaleRentDetailEntity.fromJson(e)).toList() as M;
|
|
|
+ return data.map<GarageSaleRentDetailEntity>((Map<String, dynamic> e) => GarageSaleRentDetailEntity.fromJson(e)).toList() as M;
|
|
|
}
|
|
|
if (<GarageSaleRentDetailAccount>[] is M) {
|
|
|
- return data.map<GarageSaleRentDetailAccount>((Map<String, dynamic> e) =>
|
|
|
- GarageSaleRentDetailAccount.fromJson(e)).toList() as M;
|
|
|
+ return data.map<GarageSaleRentDetailAccount>((Map<String, dynamic> e) => GarageSaleRentDetailAccount.fromJson(e)).toList() as M;
|
|
|
}
|
|
|
if (<GarageSaleRentEntity>[] is M) {
|
|
|
- return data.map<GarageSaleRentEntity>((Map<String, dynamic> e) =>
|
|
|
- GarageSaleRentEntity.fromJson(e)).toList() as M;
|
|
|
+ return data.map<GarageSaleRentEntity>((Map<String, dynamic> e) => GarageSaleRentEntity.fromJson(e)).toList() as M;
|
|
|
}
|
|
|
if (<GarageSaleRentList>[] is M) {
|
|
|
- return data.map<GarageSaleRentList>((Map<String, dynamic> e) =>
|
|
|
- GarageSaleRentList.fromJson(e)).toList() as M;
|
|
|
+ return data.map<GarageSaleRentList>((Map<String, dynamic> e) => GarageSaleRentList.fromJson(e)).toList() as M;
|
|
|
}
|
|
|
if (<GarageSaleRentListAccount>[] is M) {
|
|
|
- return data.map<GarageSaleRentListAccount>((Map<String, dynamic> e) =>
|
|
|
- GarageSaleRentListAccount.fromJson(e)).toList() as M;
|
|
|
+ return data.map<GarageSaleRentListAccount>((Map<String, dynamic> e) => GarageSaleRentListAccount.fromJson(e)).toList() as M;
|
|
|
}
|
|
|
if (<IdNameEntity>[] is M) {
|
|
|
- return data.map<IdNameEntity>((Map<String, dynamic> e) =>
|
|
|
- IdNameEntity.fromJson(e)).toList() as M;
|
|
|
+ return data.map<IdNameEntity>((Map<String, dynamic> e) => IdNameEntity.fromJson(e)).toList() as M;
|
|
|
}
|
|
|
if (<MyfollowingListEntity>[] is M) {
|
|
|
- return data.map<MyfollowingListEntity>((Map<String, dynamic> e) =>
|
|
|
- MyfollowingListEntity.fromJson(e)).toList() as M;
|
|
|
+ return data.map<MyfollowingListEntity>((Map<String, dynamic> e) => MyfollowingListEntity.fromJson(e)).toList() as M;
|
|
|
}
|
|
|
if (<MypostsNewsfeedEntity>[] is M) {
|
|
|
- return data.map<MypostsNewsfeedEntity>((Map<String, dynamic> e) =>
|
|
|
- MypostsNewsfeedEntity.fromJson(e)).toList() as M;
|
|
|
+ return data.map<MypostsNewsfeedEntity>((Map<String, dynamic> e) => MypostsNewsfeedEntity.fromJson(e)).toList() as M;
|
|
|
}
|
|
|
if (<MypostsNewsfeedList>[] is M) {
|
|
|
- return data.map<MypostsNewsfeedList>((Map<String, dynamic> e) =>
|
|
|
- MypostsNewsfeedList.fromJson(e)).toList() as M;
|
|
|
+ return data.map<MypostsNewsfeedList>((Map<String, dynamic> e) => MypostsNewsfeedList.fromJson(e)).toList() as M;
|
|
|
}
|
|
|
if (<MypostsNewsfeedListAccount>[] is M) {
|
|
|
- return data.map<MypostsNewsfeedListAccount>((Map<String, dynamic> e) =>
|
|
|
- MypostsNewsfeedListAccount.fromJson(e)).toList() as M;
|
|
|
+ return data.map<MypostsNewsfeedListAccount>((Map<String, dynamic> e) => MypostsNewsfeedListAccount.fromJson(e)).toList() as M;
|
|
|
}
|
|
|
if (<MypostsSaleRentEntity>[] is M) {
|
|
|
- return data.map<MypostsSaleRentEntity>((Map<String, dynamic> e) =>
|
|
|
- MypostsSaleRentEntity.fromJson(e)).toList() as M;
|
|
|
+ return data.map<MypostsSaleRentEntity>((Map<String, dynamic> e) => MypostsSaleRentEntity.fromJson(e)).toList() as M;
|
|
|
}
|
|
|
if (<MypostsSaleRentList>[] is M) {
|
|
|
- return data.map<MypostsSaleRentList>((Map<String, dynamic> e) =>
|
|
|
- MypostsSaleRentList.fromJson(e)).toList() as M;
|
|
|
+ return data.map<MypostsSaleRentList>((Map<String, dynamic> e) => MypostsSaleRentList.fromJson(e)).toList() as M;
|
|
|
}
|
|
|
if (<NewsfeedCommentPublishEntity>[] is M) {
|
|
|
- return data.map<NewsfeedCommentPublishEntity>((Map<String, dynamic> e) =>
|
|
|
- NewsfeedCommentPublishEntity.fromJson(e)).toList() as M;
|
|
|
+ return data.map<NewsfeedCommentPublishEntity>((Map<String, dynamic> e) => NewsfeedCommentPublishEntity.fromJson(e)).toList() as M;
|
|
|
}
|
|
|
if (<NewsfeedDetailEntity>[] is M) {
|
|
|
- return data.map<NewsfeedDetailEntity>((Map<String, dynamic> e) =>
|
|
|
- NewsfeedDetailEntity.fromJson(e)).toList() as M;
|
|
|
+ return data.map<NewsfeedDetailEntity>((Map<String, dynamic> e) => NewsfeedDetailEntity.fromJson(e)).toList() as M;
|
|
|
}
|
|
|
if (<NewsfeedDetailAccount>[] is M) {
|
|
|
- return data.map<NewsfeedDetailAccount>((Map<String, dynamic> e) =>
|
|
|
- NewsfeedDetailAccount.fromJson(e)).toList() as M;
|
|
|
+ return data.map<NewsfeedDetailAccount>((Map<String, dynamic> e) => NewsfeedDetailAccount.fromJson(e)).toList() as M;
|
|
|
}
|
|
|
if (<NewsfeedDetailComments>[] is M) {
|
|
|
- return data.map<NewsfeedDetailComments>((Map<String, dynamic> e) =>
|
|
|
- NewsfeedDetailComments.fromJson(e)).toList() as M;
|
|
|
+ return data.map<NewsfeedDetailComments>((Map<String, dynamic> e) => NewsfeedDetailComments.fromJson(e)).toList() as M;
|
|
|
}
|
|
|
if (<NewsfeedDetailCommentsAccount>[] is M) {
|
|
|
- return data.map<NewsfeedDetailCommentsAccount>((Map<String, dynamic> e) =>
|
|
|
- NewsfeedDetailCommentsAccount.fromJson(e)).toList() as M;
|
|
|
+ return data.map<NewsfeedDetailCommentsAccount>((Map<String, dynamic> e) => NewsfeedDetailCommentsAccount.fromJson(e)).toList() as M;
|
|
|
}
|
|
|
if (<NewsfeedDetailCommentsToAccount>[] is M) {
|
|
|
- return data.map<NewsfeedDetailCommentsToAccount>((
|
|
|
- Map<String, dynamic> e) =>
|
|
|
- NewsfeedDetailCommentsToAccount.fromJson(e)).toList() as M;
|
|
|
+ return data.map<NewsfeedDetailCommentsToAccount>((Map<String, dynamic> e) => NewsfeedDetailCommentsToAccount.fromJson(e)).toList() as M;
|
|
|
}
|
|
|
if (<NewsfeedFollowingEntity>[] is M) {
|
|
|
- return data.map<NewsfeedFollowingEntity>((Map<String, dynamic> e) =>
|
|
|
- NewsfeedFollowingEntity.fromJson(e)).toList() as M;
|
|
|
+ return data.map<NewsfeedFollowingEntity>((Map<String, dynamic> e) => NewsfeedFollowingEntity.fromJson(e)).toList() as M;
|
|
|
}
|
|
|
if (<NewsfeedFollowingList>[] is M) {
|
|
|
- return data.map<NewsfeedFollowingList>((Map<String, dynamic> e) =>
|
|
|
- NewsfeedFollowingList.fromJson(e)).toList() as M;
|
|
|
+ return data.map<NewsfeedFollowingList>((Map<String, dynamic> e) => NewsfeedFollowingList.fromJson(e)).toList() as M;
|
|
|
}
|
|
|
if (<NewsfeedFollowingListAccount>[] is M) {
|
|
|
- return data.map<NewsfeedFollowingListAccount>((Map<String, dynamic> e) =>
|
|
|
- NewsfeedFollowingListAccount.fromJson(e)).toList() as M;
|
|
|
+ return data.map<NewsfeedFollowingListAccount>((Map<String, dynamic> e) => NewsfeedFollowingListAccount.fromJson(e)).toList() as M;
|
|
|
}
|
|
|
if (<NewsfeedForyouEntity>[] is M) {
|
|
|
- return data.map<NewsfeedForyouEntity>((Map<String, dynamic> e) =>
|
|
|
- NewsfeedForyouEntity.fromJson(e)).toList() as M;
|
|
|
+ return data.map<NewsfeedForyouEntity>((Map<String, dynamic> e) => NewsfeedForyouEntity.fromJson(e)).toList() as M;
|
|
|
}
|
|
|
if (<NewsfeedForyouList>[] is M) {
|
|
|
- return data.map<NewsfeedForyouList>((Map<String, dynamic> e) =>
|
|
|
- NewsfeedForyouList.fromJson(e)).toList() as M;
|
|
|
+ return data.map<NewsfeedForyouList>((Map<String, dynamic> e) => NewsfeedForyouList.fromJson(e)).toList() as M;
|
|
|
}
|
|
|
if (<NewsfeedForyouListAccount>[] is M) {
|
|
|
- return data.map<NewsfeedForyouListAccount>((Map<String, dynamic> e) =>
|
|
|
- NewsfeedForyouListAccount.fromJson(e)).toList() as M;
|
|
|
+ return data.map<NewsfeedForyouListAccount>((Map<String, dynamic> e) => NewsfeedForyouListAccount.fromJson(e)).toList() as M;
|
|
|
}
|
|
|
if (<NewsfeedNewsEntity>[] is M) {
|
|
|
- return data.map<NewsfeedNewsEntity>((Map<String, dynamic> e) =>
|
|
|
- NewsfeedNewsEntity.fromJson(e)).toList() as M;
|
|
|
+ return data.map<NewsfeedNewsEntity>((Map<String, dynamic> e) => NewsfeedNewsEntity.fromJson(e)).toList() as M;
|
|
|
}
|
|
|
if (<NewsfeedNewsList>[] is M) {
|
|
|
- return data.map<NewsfeedNewsList>((Map<String, dynamic> e) =>
|
|
|
- NewsfeedNewsList.fromJson(e)).toList() as M;
|
|
|
+ return data.map<NewsfeedNewsList>((Map<String, dynamic> e) => NewsfeedNewsList.fromJson(e)).toList() as M;
|
|
|
}
|
|
|
if (<NewsfeedNewsListAccount>[] is M) {
|
|
|
- return data.map<NewsfeedNewsListAccount>((Map<String, dynamic> e) =>
|
|
|
- NewsfeedNewsListAccount.fromJson(e)).toList() as M;
|
|
|
+ return data.map<NewsfeedNewsListAccount>((Map<String, dynamic> e) => NewsfeedNewsListAccount.fromJson(e)).toList() as M;
|
|
|
}
|
|
|
if (<NoticeBoardAnnounEntity>[] is M) {
|
|
|
- return data.map<NoticeBoardAnnounEntity>((Map<String, dynamic> e) =>
|
|
|
- NoticeBoardAnnounEntity.fromJson(e)).toList() as M;
|
|
|
+ return data.map<NoticeBoardAnnounEntity>((Map<String, dynamic> e) => NoticeBoardAnnounEntity.fromJson(e)).toList() as M;
|
|
|
}
|
|
|
if (<NoticeBoardDocumentsEntity>[] is M) {
|
|
|
- return data.map<NoticeBoardDocumentsEntity>((Map<String, dynamic> e) =>
|
|
|
- NoticeBoardDocumentsEntity.fromJson(e)).toList() as M;
|
|
|
+ return data.map<NoticeBoardDocumentsEntity>((Map<String, dynamic> e) => NoticeBoardDocumentsEntity.fromJson(e)).toList() as M;
|
|
|
}
|
|
|
if (<NoticeBoardEventEntity>[] is M) {
|
|
|
- return data.map<NoticeBoardEventEntity>((Map<String, dynamic> e) =>
|
|
|
- NoticeBoardEventEntity.fromJson(e)).toList() as M;
|
|
|
+ return data.map<NoticeBoardEventEntity>((Map<String, dynamic> e) => NoticeBoardEventEntity.fromJson(e)).toList() as M;
|
|
|
}
|
|
|
if (<PaymentPageEntity>[] is M) {
|
|
|
return data.map<PaymentPageEntity>((Map<String, dynamic> e) => PaymentPageEntity.fromJson(e)).toList() as M;
|
|
@@ -411,120 +350,91 @@ class JsonConvert {
|
|
|
return data.map<PaymentPageList>((Map<String, dynamic> e) => PaymentPageList.fromJson(e)).toList() as M;
|
|
|
}
|
|
|
if (<PropertyNewsEntity>[] is M) {
|
|
|
- return data.map<PropertyNewsEntity>((Map<String, dynamic> e) =>
|
|
|
- PropertyNewsEntity.fromJson(e)).toList() as M;
|
|
|
+ return data.map<PropertyNewsEntity>((Map<String, dynamic> e) => PropertyNewsEntity.fromJson(e)).toList() as M;
|
|
|
}
|
|
|
if (<PropertyNewsList>[] is M) {
|
|
|
- return data.map<PropertyNewsList>((Map<String, dynamic> e) =>
|
|
|
- PropertyNewsList.fromJson(e)).toList() as M;
|
|
|
+ return data.map<PropertyNewsList>((Map<String, dynamic> e) => PropertyNewsList.fromJson(e)).toList() as M;
|
|
|
}
|
|
|
if (<PropertySaleRentEntity>[] is M) {
|
|
|
- return data.map<PropertySaleRentEntity>((Map<String, dynamic> e) =>
|
|
|
- PropertySaleRentEntity.fromJson(e)).toList() as M;
|
|
|
+ return data.map<PropertySaleRentEntity>((Map<String, dynamic> e) => PropertySaleRentEntity.fromJson(e)).toList() as M;
|
|
|
}
|
|
|
if (<PropertySaleRentList>[] is M) {
|
|
|
- return data.map<PropertySaleRentList>((Map<String, dynamic> e) =>
|
|
|
- PropertySaleRentList.fromJson(e)).toList() as M;
|
|
|
+ return data.map<PropertySaleRentList>((Map<String, dynamic> e) => PropertySaleRentList.fromJson(e)).toList() as M;
|
|
|
}
|
|
|
if (<RewardsCategoryEntity>[] is M) {
|
|
|
- return data.map<RewardsCategoryEntity>((Map<String, dynamic> e) =>
|
|
|
- RewardsCategoryEntity.fromJson(e)).toList() as M;
|
|
|
+ return data.map<RewardsCategoryEntity>((Map<String, dynamic> e) => RewardsCategoryEntity.fromJson(e)).toList() as M;
|
|
|
}
|
|
|
if (<RewardsHistoryEarnedEntity>[] is M) {
|
|
|
- return data.map<RewardsHistoryEarnedEntity>((Map<String, dynamic> e) =>
|
|
|
- RewardsHistoryEarnedEntity.fromJson(e)).toList() as M;
|
|
|
+ return data.map<RewardsHistoryEarnedEntity>((Map<String, dynamic> e) => RewardsHistoryEarnedEntity.fromJson(e)).toList() as M;
|
|
|
}
|
|
|
if (<RewardsHomeEntity>[] is M) {
|
|
|
- return data.map<RewardsHomeEntity>((Map<String, dynamic> e) =>
|
|
|
- RewardsHomeEntity.fromJson(e)).toList() as M;
|
|
|
+ return data.map<RewardsHomeEntity>((Map<String, dynamic> e) => RewardsHomeEntity.fromJson(e)).toList() as M;
|
|
|
}
|
|
|
if (<RewardsHomeData>[] is M) {
|
|
|
- return data.map<RewardsHomeData>((Map<String, dynamic> e) =>
|
|
|
- RewardsHomeData.fromJson(e)).toList() as M;
|
|
|
+ return data.map<RewardsHomeData>((Map<String, dynamic> e) => RewardsHomeData.fromJson(e)).toList() as M;
|
|
|
}
|
|
|
if (<RewardsHomeDataRewards>[] is M) {
|
|
|
- return data.map<RewardsHomeDataRewards>((Map<String, dynamic> e) =>
|
|
|
- RewardsHomeDataRewards.fromJson(e)).toList() as M;
|
|
|
+ return data.map<RewardsHomeDataRewards>((Map<String, dynamic> e) => RewardsHomeDataRewards.fromJson(e)).toList() as M;
|
|
|
}
|
|
|
if (<RewardsHomeTesEntity>[] is M) {
|
|
|
- return data.map<RewardsHomeTesEntity>((Map<String, dynamic> e) =>
|
|
|
- RewardsHomeTesEntity.fromJson(e)).toList() as M;
|
|
|
+ return data.map<RewardsHomeTesEntity>((Map<String, dynamic> e) => RewardsHomeTesEntity.fromJson(e)).toList() as M;
|
|
|
}
|
|
|
if (<RewardsHomeTesRewards>[] is M) {
|
|
|
- return data.map<RewardsHomeTesRewards>((Map<String, dynamic> e) =>
|
|
|
- RewardsHomeTesRewards.fromJson(e)).toList() as M;
|
|
|
+ return data.map<RewardsHomeTesRewards>((Map<String, dynamic> e) => RewardsHomeTesRewards.fromJson(e)).toList() as M;
|
|
|
}
|
|
|
if (<RewardsHomeTestEntity>[] is M) {
|
|
|
- return data.map<RewardsHomeTestEntity>((Map<String, dynamic> e) =>
|
|
|
- RewardsHomeTestEntity.fromJson(e)).toList() as M;
|
|
|
+ return data.map<RewardsHomeTestEntity>((Map<String, dynamic> e) => RewardsHomeTestEntity.fromJson(e)).toList() as M;
|
|
|
}
|
|
|
if (<RewardsHomeTxEntity>[] is M) {
|
|
|
- return data.map<RewardsHomeTxEntity>((Map<String, dynamic> e) =>
|
|
|
- RewardsHomeTxEntity.fromJson(e)).toList() as M;
|
|
|
+ return data.map<RewardsHomeTxEntity>((Map<String, dynamic> e) => RewardsHomeTxEntity.fromJson(e)).toList() as M;
|
|
|
}
|
|
|
if (<RewardsIndexEntity>[] is M) {
|
|
|
- return data.map<RewardsIndexEntity>((Map<String, dynamic> e) =>
|
|
|
- RewardsIndexEntity.fromJson(e)).toList() as M;
|
|
|
+ return data.map<RewardsIndexEntity>((Map<String, dynamic> e) => RewardsIndexEntity.fromJson(e)).toList() as M;
|
|
|
}
|
|
|
if (<RewardsIndexContinuous>[] is M) {
|
|
|
- return data.map<RewardsIndexContinuous>((Map<String, dynamic> e) =>
|
|
|
- RewardsIndexContinuous.fromJson(e)).toList() as M;
|
|
|
+ return data.map<RewardsIndexContinuous>((Map<String, dynamic> e) => RewardsIndexContinuous.fromJson(e)).toList() as M;
|
|
|
}
|
|
|
if (<RewardsIndexTasks>[] is M) {
|
|
|
- return data.map<RewardsIndexTasks>((Map<String, dynamic> e) =>
|
|
|
- RewardsIndexTasks.fromJson(e)).toList() as M;
|
|
|
+ return data.map<RewardsIndexTasks>((Map<String, dynamic> e) => RewardsIndexTasks.fromJson(e)).toList() as M;
|
|
|
}
|
|
|
if (<RewardsListEntity>[] is M) {
|
|
|
- return data.map<RewardsListEntity>((Map<String, dynamic> e) =>
|
|
|
- RewardsListEntity.fromJson(e)).toList() as M;
|
|
|
+ return data.map<RewardsListEntity>((Map<String, dynamic> e) => RewardsListEntity.fromJson(e)).toList() as M;
|
|
|
}
|
|
|
if (<RewardsListList>[] is M) {
|
|
|
- return data.map<RewardsListList>((Map<String, dynamic> e) =>
|
|
|
- RewardsListList.fromJson(e)).toList() as M;
|
|
|
+ return data.map<RewardsListList>((Map<String, dynamic> e) => RewardsListList.fromJson(e)).toList() as M;
|
|
|
}
|
|
|
if (<ServerTime>[] is M) {
|
|
|
- return data.map<ServerTime>((Map<String, dynamic> e) =>
|
|
|
- ServerTime.fromJson(e)).toList() as M;
|
|
|
+ return data.map<ServerTime>((Map<String, dynamic> e) => ServerTime.fromJson(e)).toList() as M;
|
|
|
}
|
|
|
if (<TextKonEntity>[] is M) {
|
|
|
- return data.map<TextKonEntity>((Map<String, dynamic> e) =>
|
|
|
- TextKonEntity.fromJson(e)).toList() as M;
|
|
|
+ return data.map<TextKonEntity>((Map<String, dynamic> e) => TextKonEntity.fromJson(e)).toList() as M;
|
|
|
}
|
|
|
if (<UserMeEntity>[] is M) {
|
|
|
- return data.map<UserMeEntity>((Map<String, dynamic> e) =>
|
|
|
- UserMeEntity.fromJson(e)).toList() as M;
|
|
|
+ return data.map<UserMeEntity>((Map<String, dynamic> e) => UserMeEntity.fromJson(e)).toList() as M;
|
|
|
}
|
|
|
if (<UserMeHouseholds>[] is M) {
|
|
|
- return data.map<UserMeHouseholds>((Map<String, dynamic> e) =>
|
|
|
- UserMeHouseholds.fromJson(e)).toList() as M;
|
|
|
+ return data.map<UserMeHouseholds>((Map<String, dynamic> e) => UserMeHouseholds.fromJson(e)).toList() as M;
|
|
|
}
|
|
|
if (<UserMeEstates>[] is M) {
|
|
|
- return data.map<UserMeEstates>((Map<String, dynamic> e) =>
|
|
|
- UserMeEstates.fromJson(e)).toList() as M;
|
|
|
+ return data.map<UserMeEstates>((Map<String, dynamic> e) => UserMeEstates.fromJson(e)).toList() as M;
|
|
|
}
|
|
|
if (<UserMeEstatesAccounts>[] is M) {
|
|
|
- return data.map<UserMeEstatesAccounts>((Map<String, dynamic> e) =>
|
|
|
- UserMeEstatesAccounts.fromJson(e)).toList() as M;
|
|
|
+ return data.map<UserMeEstatesAccounts>((Map<String, dynamic> e) => UserMeEstatesAccounts.fromJson(e)).toList() as M;
|
|
|
}
|
|
|
if (<UserMeEstatesAccountsUnit>[] is M) {
|
|
|
- return data.map<UserMeEstatesAccountsUnit>((Map<String, dynamic> e) =>
|
|
|
- UserMeEstatesAccountsUnit.fromJson(e)).toList() as M;
|
|
|
+ return data.map<UserMeEstatesAccountsUnit>((Map<String, dynamic> e) => UserMeEstatesAccountsUnit.fromJson(e)).toList() as M;
|
|
|
}
|
|
|
if (<UserMeDefaultUnit>[] is M) {
|
|
|
- return data.map<UserMeDefaultUnit>((Map<String, dynamic> e) =>
|
|
|
- UserMeDefaultUnit.fromJson(e)).toList() as M;
|
|
|
+ return data.map<UserMeDefaultUnit>((Map<String, dynamic> e) => UserMeDefaultUnit.fromJson(e)).toList() as M;
|
|
|
}
|
|
|
if (<UserMeInformation>[] is M) {
|
|
|
- return data.map<UserMeInformation>((Map<String, dynamic> e) =>
|
|
|
- UserMeInformation.fromJson(e)).toList() as M;
|
|
|
+ return data.map<UserMeInformation>((Map<String, dynamic> e) => UserMeInformation.fromJson(e)).toList() as M;
|
|
|
}
|
|
|
if (<VisitorPageEntity>[] is M) {
|
|
|
- return data.map<VisitorPageEntity>((Map<String, dynamic> e) =>
|
|
|
- VisitorPageEntity.fromJson(e)).toList() as M;
|
|
|
+ return data.map<VisitorPageEntity>((Map<String, dynamic> e) => VisitorPageEntity.fromJson(e)).toList() as M;
|
|
|
}
|
|
|
if (<VisitorPageList>[] is M) {
|
|
|
- return data.map<VisitorPageList>((Map<String, dynamic> e) =>
|
|
|
- VisitorPageList.fromJson(e)).toList() as M;
|
|
|
+ return data.map<VisitorPageList>((Map<String, dynamic> e) => VisitorPageList.fromJson(e)).toList() as M;
|
|
|
}
|
|
|
|
|
|
debugPrint("$M not found");
|
|
@@ -537,8 +447,7 @@ class JsonConvert {
|
|
|
return json;
|
|
|
}
|
|
|
if (json is List) {
|
|
|
- return _getListChildType<M>(
|
|
|
- json.map((dynamic e) => e as Map<String, dynamic>).toList());
|
|
|
+ return _getListChildType<M>(json.map((dynamic e) => e as Map<String, dynamic>).toList());
|
|
|
} else {
|
|
|
return jsonConvert.convert<M>(json);
|
|
|
}
|
|
@@ -552,17 +461,14 @@ class JsonConvertClassCollection {
|
|
|
(FacilityBookEntity).toString(): FacilityBookEntity.fromJson,
|
|
|
(FacilityBookFacilityType).toString(): FacilityBookFacilityType.fromJson,
|
|
|
(FacilityBookFacilities).toString(): FacilityBookFacilities.fromJson,
|
|
|
- (FacilityBookFacilitiesPeriods).toString(): FacilityBookFacilitiesPeriods
|
|
|
- .fromJson,
|
|
|
+ (FacilityBookFacilitiesPeriods).toString(): FacilityBookFacilitiesPeriods.fromJson,
|
|
|
(FacilityIndexEntity).toString(): FacilityIndexEntity.fromJson,
|
|
|
(FacilityPageEntity).toString(): FacilityPageEntity.fromJson,
|
|
|
(FacilityDetail).toString(): FacilityDetail.fromJson,
|
|
|
(FacilityPageListBooking).toString(): FacilityPageListBooking.fromJson,
|
|
|
(FacilityPageListFacility).toString(): FacilityPageListFacility.fromJson,
|
|
|
- (FacilityPageListFacilityType).toString(): FacilityPageListFacilityType
|
|
|
- .fromJson,
|
|
|
- (FacilityPageListTimePeriod).toString(): FacilityPageListTimePeriod
|
|
|
- .fromJson,
|
|
|
+ (FacilityPageListFacilityType).toString(): FacilityPageListFacilityType.fromJson,
|
|
|
+ (FacilityPageListTimePeriod).toString(): FacilityPageListTimePeriod.fromJson,
|
|
|
(FacilityPageListAccount).toString(): FacilityPageListAccount.fromJson,
|
|
|
(FeedbackDetailEntity).toString(): FeedbackDetailEntity.fromJson,
|
|
|
(FeedbackDetailReplies).toString(): FeedbackDetailReplies.fromJson,
|
|
@@ -573,13 +479,10 @@ class JsonConvertClassCollection {
|
|
|
(FormListEntity).toString(): FormListEntity.fromJson,
|
|
|
(FormOptionEntity).toString(): FormOptionEntity.fromJson,
|
|
|
(FormSubmittedEntity).toString(): FormSubmittedEntity.fromJson,
|
|
|
- (FormSubmittedEstateOnlineForm).toString(): FormSubmittedEstateOnlineForm
|
|
|
- .fromJson,
|
|
|
+ (FormSubmittedEstateOnlineForm).toString(): FormSubmittedEstateOnlineForm.fromJson,
|
|
|
(FormSubmittedPageEntity).toString(): FormSubmittedPageEntity.fromJson,
|
|
|
- (GarageSaleRentDetailEntity).toString(): GarageSaleRentDetailEntity
|
|
|
- .fromJson,
|
|
|
- (GarageSaleRentDetailAccount).toString(): GarageSaleRentDetailAccount
|
|
|
- .fromJson,
|
|
|
+ (GarageSaleRentDetailEntity).toString(): GarageSaleRentDetailEntity.fromJson,
|
|
|
+ (GarageSaleRentDetailAccount).toString(): GarageSaleRentDetailAccount.fromJson,
|
|
|
(GarageSaleRentEntity).toString(): GarageSaleRentEntity.fromJson,
|
|
|
(GarageSaleRentList).toString(): GarageSaleRentList.fromJson,
|
|
|
(GarageSaleRentListAccount).toString(): GarageSaleRentListAccount.fromJson,
|
|
@@ -587,23 +490,18 @@ class JsonConvertClassCollection {
|
|
|
(MyfollowingListEntity).toString(): MyfollowingListEntity.fromJson,
|
|
|
(MypostsNewsfeedEntity).toString(): MypostsNewsfeedEntity.fromJson,
|
|
|
(MypostsNewsfeedList).toString(): MypostsNewsfeedList.fromJson,
|
|
|
- (MypostsNewsfeedListAccount).toString(): MypostsNewsfeedListAccount
|
|
|
- .fromJson,
|
|
|
+ (MypostsNewsfeedListAccount).toString(): MypostsNewsfeedListAccount.fromJson,
|
|
|
(MypostsSaleRentEntity).toString(): MypostsSaleRentEntity.fromJson,
|
|
|
(MypostsSaleRentList).toString(): MypostsSaleRentList.fromJson,
|
|
|
- (NewsfeedCommentPublishEntity).toString(): NewsfeedCommentPublishEntity
|
|
|
- .fromJson,
|
|
|
+ (NewsfeedCommentPublishEntity).toString(): NewsfeedCommentPublishEntity.fromJson,
|
|
|
(NewsfeedDetailEntity).toString(): NewsfeedDetailEntity.fromJson,
|
|
|
(NewsfeedDetailAccount).toString(): NewsfeedDetailAccount.fromJson,
|
|
|
(NewsfeedDetailComments).toString(): NewsfeedDetailComments.fromJson,
|
|
|
- (NewsfeedDetailCommentsAccount).toString(): NewsfeedDetailCommentsAccount
|
|
|
- .fromJson,
|
|
|
- (NewsfeedDetailCommentsToAccount)
|
|
|
- .toString(): NewsfeedDetailCommentsToAccount.fromJson,
|
|
|
+ (NewsfeedDetailCommentsAccount).toString(): NewsfeedDetailCommentsAccount.fromJson,
|
|
|
+ (NewsfeedDetailCommentsToAccount).toString(): NewsfeedDetailCommentsToAccount.fromJson,
|
|
|
(NewsfeedFollowingEntity).toString(): NewsfeedFollowingEntity.fromJson,
|
|
|
(NewsfeedFollowingList).toString(): NewsfeedFollowingList.fromJson,
|
|
|
- (NewsfeedFollowingListAccount).toString(): NewsfeedFollowingListAccount
|
|
|
- .fromJson,
|
|
|
+ (NewsfeedFollowingListAccount).toString(): NewsfeedFollowingListAccount.fromJson,
|
|
|
(NewsfeedForyouEntity).toString(): NewsfeedForyouEntity.fromJson,
|
|
|
(NewsfeedForyouList).toString(): NewsfeedForyouList.fromJson,
|
|
|
(NewsfeedForyouListAccount).toString(): NewsfeedForyouListAccount.fromJson,
|
|
@@ -611,8 +509,7 @@ class JsonConvertClassCollection {
|
|
|
(NewsfeedNewsList).toString(): NewsfeedNewsList.fromJson,
|
|
|
(NewsfeedNewsListAccount).toString(): NewsfeedNewsListAccount.fromJson,
|
|
|
(NoticeBoardAnnounEntity).toString(): NoticeBoardAnnounEntity.fromJson,
|
|
|
- (NoticeBoardDocumentsEntity).toString(): NoticeBoardDocumentsEntity
|
|
|
- .fromJson,
|
|
|
+ (NoticeBoardDocumentsEntity).toString(): NoticeBoardDocumentsEntity.fromJson,
|
|
|
(NoticeBoardEventEntity).toString(): NoticeBoardEventEntity.fromJson,
|
|
|
(PaymentPageEntity).toString(): PaymentPageEntity.fromJson,
|
|
|
(PaymentPageList).toString(): PaymentPageList.fromJson,
|
|
@@ -621,8 +518,7 @@ class JsonConvertClassCollection {
|
|
|
(PropertySaleRentEntity).toString(): PropertySaleRentEntity.fromJson,
|
|
|
(PropertySaleRentList).toString(): PropertySaleRentList.fromJson,
|
|
|
(RewardsCategoryEntity).toString(): RewardsCategoryEntity.fromJson,
|
|
|
- (RewardsHistoryEarnedEntity).toString(): RewardsHistoryEarnedEntity
|
|
|
- .fromJson,
|
|
|
+ (RewardsHistoryEarnedEntity).toString(): RewardsHistoryEarnedEntity.fromJson,
|
|
|
(RewardsHomeEntity).toString(): RewardsHomeEntity.fromJson,
|
|
|
(RewardsHomeData).toString(): RewardsHomeData.fromJson,
|
|
|
(RewardsHomeDataRewards).toString(): RewardsHomeDataRewards.fromJson,
|