|
|
@@ -31,6 +31,8 @@ import 'package:bbyyy/beans/pay_by_we_chat_bean_entity.dart';
|
|
|
import 'package:bbyyy/generated/json/pay_by_we_chat_bean_entity_helper.dart';
|
|
|
import 'package:bbyyy/beans/access_bean_entity.dart';
|
|
|
import 'package:bbyyy/generated/json/access_bean_entity_helper.dart';
|
|
|
+import 'package:bbyyy/beans/save_image_bean_entity.dart';
|
|
|
+import 'package:bbyyy/generated/json/save_image_bean_entity_helper.dart';
|
|
|
import 'package:bbyyy/beans/user_vp_bean_entity.dart';
|
|
|
import 'package:bbyyy/generated/json/user_vp_bean_entity_helper.dart';
|
|
|
import 'package:bbyyy/beans/user_balance_entity.dart';
|
|
|
@@ -108,7 +110,7 @@ class JsonConvert<T> {
|
|
|
}
|
|
|
|
|
|
static _getFromJson<T>(Type type, data, json) {
|
|
|
- switch (type) {
|
|
|
+ switch (type) {
|
|
|
case CommodityCategoryBeanEntity:
|
|
|
return commodityCategoryBeanEntityFromJson(data as CommodityCategoryBeanEntity, json) as T;
|
|
|
case CommodityCategoryBeanData:
|
|
|
@@ -173,6 +175,8 @@ class JsonConvert<T> {
|
|
|
return payByWeChatBeanDataFromJson(data as PayByWeChatBeanData, json) as T;
|
|
|
case AccessBeanEntity:
|
|
|
return accessBeanEntityFromJson(data as AccessBeanEntity, json) as T;
|
|
|
+ case SaveImageBeanEntity:
|
|
|
+ return saveImageBeanEntityFromJson(data as SaveImageBeanEntity, json) as T;
|
|
|
case UserVpBeanEntity:
|
|
|
return userVpBeanEntityFromJson(data as UserVpBeanEntity, json) as T;
|
|
|
case UserVpBeanData:
|
|
|
@@ -317,8 +321,8 @@ class JsonConvert<T> {
|
|
|
return flowBeanDataDataFromJson(data as FlowBeanDataData, json) as T;
|
|
|
case FlowBeanDataDataRecords:
|
|
|
return flowBeanDataDataRecordsFromJson(data as FlowBeanDataDataRecords, json) as T; }
|
|
|
- return data as T;
|
|
|
- }
|
|
|
+ return data as T;
|
|
|
+ }
|
|
|
|
|
|
static _getToJson<T>(Type type, data) {
|
|
|
switch (type) {
|
|
|
@@ -386,6 +390,8 @@ class JsonConvert<T> {
|
|
|
return payByWeChatBeanDataToJson(data as PayByWeChatBeanData);
|
|
|
case AccessBeanEntity:
|
|
|
return accessBeanEntityToJson(data as AccessBeanEntity);
|
|
|
+ case SaveImageBeanEntity:
|
|
|
+ return saveImageBeanEntityToJson(data as SaveImageBeanEntity);
|
|
|
case UserVpBeanEntity:
|
|
|
return userVpBeanEntityToJson(data as UserVpBeanEntity);
|
|
|
case UserVpBeanData:
|
|
|
@@ -538,213 +544,320 @@ class JsonConvert<T> {
|
|
|
String type = M.toString();
|
|
|
if(type == (CommodityCategoryBeanEntity).toString()){
|
|
|
return CommodityCategoryBeanEntity().fromJson(json);
|
|
|
- } else if(type == (CommodityCategoryBeanData).toString()){
|
|
|
+ }
|
|
|
+ if(type == (CommodityCategoryBeanData).toString()){
|
|
|
return CommodityCategoryBeanData().fromJson(json);
|
|
|
- } else if(type == (CouponBeanEntity).toString()){
|
|
|
+ }
|
|
|
+ if(type == (CouponBeanEntity).toString()){
|
|
|
return CouponBeanEntity().fromJson(json);
|
|
|
- } else if(type == (CouponBeanData).toString()){
|
|
|
+ }
|
|
|
+ if(type == (CouponBeanData).toString()){
|
|
|
return CouponBeanData().fromJson(json);
|
|
|
- } else if(type == (CouponBeanDataData).toString()){
|
|
|
+ }
|
|
|
+ if(type == (CouponBeanDataData).toString()){
|
|
|
return CouponBeanDataData().fromJson(json);
|
|
|
- } else if(type == (NewOrderBeanEntity).toString()){
|
|
|
+ }
|
|
|
+ if(type == (NewOrderBeanEntity).toString()){
|
|
|
return NewOrderBeanEntity().fromJson(json);
|
|
|
- } else if(type == (NewOrderBeanContent).toString()){
|
|
|
+ }
|
|
|
+ if(type == (NewOrderBeanContent).toString()){
|
|
|
return NewOrderBeanContent().fromJson(json);
|
|
|
- } else if(type == (ShopUserUpBeanEntity).toString()){
|
|
|
+ }
|
|
|
+ if(type == (ShopUserUpBeanEntity).toString()){
|
|
|
return ShopUserUpBeanEntity().fromJson(json);
|
|
|
- } else if(type == (MyShopBeanEntity).toString()){
|
|
|
+ }
|
|
|
+ if(type == (MyShopBeanEntity).toString()){
|
|
|
return MyShopBeanEntity().fromJson(json);
|
|
|
- } else if(type == (MyShopBeanData).toString()){
|
|
|
+ }
|
|
|
+ if(type == (MyShopBeanData).toString()){
|
|
|
return MyShopBeanData().fromJson(json);
|
|
|
- } else if(type == (MyShopBeanDataData).toString()){
|
|
|
+ }
|
|
|
+ if(type == (MyShopBeanDataData).toString()){
|
|
|
return MyShopBeanDataData().fromJson(json);
|
|
|
- } else if(type == (ComplainBeanEntity).toString()){
|
|
|
+ }
|
|
|
+ if(type == (ComplainBeanEntity).toString()){
|
|
|
return ComplainBeanEntity().fromJson(json);
|
|
|
- } else if(type == (ComplainBeanData).toString()){
|
|
|
+ }
|
|
|
+ if(type == (ComplainBeanData).toString()){
|
|
|
return ComplainBeanData().fromJson(json);
|
|
|
- } else if(type == (ComplainBeanDataData).toString()){
|
|
|
+ }
|
|
|
+ if(type == (ComplainBeanDataData).toString()){
|
|
|
return ComplainBeanDataData().fromJson(json);
|
|
|
- } else if(type == (AndroidAppVersionBeanEntity).toString()){
|
|
|
+ }
|
|
|
+ if(type == (AndroidAppVersionBeanEntity).toString()){
|
|
|
return AndroidAppVersionBeanEntity().fromJson(json);
|
|
|
- } else if(type == (AndroidAppVersionBeanData).toString()){
|
|
|
+ }
|
|
|
+ if(type == (AndroidAppVersionBeanData).toString()){
|
|
|
return AndroidAppVersionBeanData().fromJson(json);
|
|
|
- } else if(type == (HomeCarouselBeanEntity).toString()){
|
|
|
+ }
|
|
|
+ if(type == (HomeCarouselBeanEntity).toString()){
|
|
|
return HomeCarouselBeanEntity().fromJson(json);
|
|
|
- } else if(type == (HomeCarouselBeanData).toString()){
|
|
|
+ }
|
|
|
+ if(type == (HomeCarouselBeanData).toString()){
|
|
|
return HomeCarouselBeanData().fromJson(json);
|
|
|
- } else if(type == (AlipayResultBeanEntity).toString()){
|
|
|
+ }
|
|
|
+ if(type == (AlipayResultBeanEntity).toString()){
|
|
|
return AlipayResultBeanEntity().fromJson(json);
|
|
|
- } else if(type == (NewMsgBeanEntity).toString()){
|
|
|
+ }
|
|
|
+ if(type == (NewMsgBeanEntity).toString()){
|
|
|
return NewMsgBeanEntity().fromJson(json);
|
|
|
- } else if(type == (NewMsgBeanContent).toString()){
|
|
|
+ }
|
|
|
+ if(type == (NewMsgBeanContent).toString()){
|
|
|
return NewMsgBeanContent().fromJson(json);
|
|
|
- } else if(type == (NewMsgBeanContentSender).toString()){
|
|
|
+ }
|
|
|
+ if(type == (NewMsgBeanContentSender).toString()){
|
|
|
return NewMsgBeanContentSender().fromJson(json);
|
|
|
- } else if(type == (NewMsgBeanContentReceiver).toString()){
|
|
|
+ }
|
|
|
+ if(type == (NewMsgBeanContentReceiver).toString()){
|
|
|
return NewMsgBeanContentReceiver().fromJson(json);
|
|
|
- } else if(type == (NewMsgBeanContentShop).toString()){
|
|
|
+ }
|
|
|
+ if(type == (NewMsgBeanContentShop).toString()){
|
|
|
return NewMsgBeanContentShop().fromJson(json);
|
|
|
- } else if(type == (NewMsgBeanContentOrder).toString()){
|
|
|
+ }
|
|
|
+ if(type == (NewMsgBeanContentOrder).toString()){
|
|
|
return NewMsgBeanContentOrder().fromJson(json);
|
|
|
- } else if(type == (NewMsgBeanContentGoods).toString()){
|
|
|
+ }
|
|
|
+ if(type == (NewMsgBeanContentGoods).toString()){
|
|
|
return NewMsgBeanContentGoods().fromJson(json);
|
|
|
- } else if(type == (FixedPriceBeanEntity).toString()){
|
|
|
+ }
|
|
|
+ if(type == (FixedPriceBeanEntity).toString()){
|
|
|
return FixedPriceBeanEntity().fromJson(json);
|
|
|
- } else if(type == (FixedPriceBeanData).toString()){
|
|
|
+ }
|
|
|
+ if(type == (FixedPriceBeanData).toString()){
|
|
|
return FixedPriceBeanData().fromJson(json);
|
|
|
- } else if(type == (PayByAlipayBeanEntity).toString()){
|
|
|
+ }
|
|
|
+ if(type == (PayByAlipayBeanEntity).toString()){
|
|
|
return PayByAlipayBeanEntity().fromJson(json);
|
|
|
- } else if(type == (PayByWeChatBeanEntity).toString()){
|
|
|
+ }
|
|
|
+ if(type == (PayByWeChatBeanEntity).toString()){
|
|
|
return PayByWeChatBeanEntity().fromJson(json);
|
|
|
- } else if(type == (PayByWeChatBeanData).toString()){
|
|
|
+ }
|
|
|
+ if(type == (PayByWeChatBeanData).toString()){
|
|
|
return PayByWeChatBeanData().fromJson(json);
|
|
|
- } else if(type == (AccessBeanEntity).toString()){
|
|
|
+ }
|
|
|
+ if(type == (AccessBeanEntity).toString()){
|
|
|
return AccessBeanEntity().fromJson(json);
|
|
|
- } else if(type == (UserVpBeanEntity).toString()){
|
|
|
+ }
|
|
|
+ if(type == (SaveImageBeanEntity).toString()){
|
|
|
+ return SaveImageBeanEntity().fromJson(json);
|
|
|
+ }
|
|
|
+ if(type == (UserVpBeanEntity).toString()){
|
|
|
return UserVpBeanEntity().fromJson(json);
|
|
|
- } else if(type == (UserVpBeanData).toString()){
|
|
|
+ }
|
|
|
+ if(type == (UserVpBeanData).toString()){
|
|
|
return UserVpBeanData().fromJson(json);
|
|
|
- } else if(type == (UserVpBeanDataData).toString()){
|
|
|
+ }
|
|
|
+ if(type == (UserVpBeanDataData).toString()){
|
|
|
return UserVpBeanDataData().fromJson(json);
|
|
|
- } else if(type == (UserBalanceEntity).toString()){
|
|
|
+ }
|
|
|
+ if(type == (UserBalanceEntity).toString()){
|
|
|
return UserBalanceEntity().fromJson(json);
|
|
|
- } else if(type == (LoginInformationBeanEntity).toString()){
|
|
|
+ }
|
|
|
+ if(type == (LoginInformationBeanEntity).toString()){
|
|
|
return LoginInformationBeanEntity().fromJson(json);
|
|
|
- } else if(type == (LoginInformationBeanData).toString()){
|
|
|
+ }
|
|
|
+ if(type == (LoginInformationBeanData).toString()){
|
|
|
return LoginInformationBeanData().fromJson(json);
|
|
|
- } else if(type == (LoginInformationBeanDataExtra).toString()){
|
|
|
+ }
|
|
|
+ if(type == (LoginInformationBeanDataExtra).toString()){
|
|
|
return LoginInformationBeanDataExtra().fromJson(json);
|
|
|
- } else if(type == (StoreBeanEntity).toString()){
|
|
|
+ }
|
|
|
+ if(type == (StoreBeanEntity).toString()){
|
|
|
return StoreBeanEntity().fromJson(json);
|
|
|
- } else if(type == (StoreBeanData).toString()){
|
|
|
+ }
|
|
|
+ if(type == (StoreBeanData).toString()){
|
|
|
return StoreBeanData().fromJson(json);
|
|
|
- } else if(type == (StoreBeanDataData).toString()){
|
|
|
+ }
|
|
|
+ if(type == (StoreBeanDataData).toString()){
|
|
|
return StoreBeanDataData().fromJson(json);
|
|
|
- } else if(type == (OfflinePaymentBeanEntity).toString()){
|
|
|
+ }
|
|
|
+ if(type == (OfflinePaymentBeanEntity).toString()){
|
|
|
return OfflinePaymentBeanEntity().fromJson(json);
|
|
|
- } else if(type == (SaveOrderBeanEntity).toString()){
|
|
|
+ }
|
|
|
+ if(type == (SaveOrderBeanEntity).toString()){
|
|
|
return SaveOrderBeanEntity().fromJson(json);
|
|
|
- } else if(type == (PayWayBeanEntity).toString()){
|
|
|
+ }
|
|
|
+ if(type == (PayWayBeanEntity).toString()){
|
|
|
return PayWayBeanEntity().fromJson(json);
|
|
|
- } else if(type == (PayWayBeanData).toString()){
|
|
|
+ }
|
|
|
+ if(type == (PayWayBeanData).toString()){
|
|
|
return PayWayBeanData().fromJson(json);
|
|
|
- } else if(type == (SystemInformationBeanListEntity).toString()){
|
|
|
+ }
|
|
|
+ if(type == (SystemInformationBeanListEntity).toString()){
|
|
|
return SystemInformationBeanListEntity().fromJson(json);
|
|
|
- } else if(type == (SystemInformationBeanListContent).toString()){
|
|
|
+ }
|
|
|
+ if(type == (SystemInformationBeanListContent).toString()){
|
|
|
return SystemInformationBeanListContent().fromJson(json);
|
|
|
- } else if(type == (DBMessageBeanEntity).toString()){
|
|
|
+ }
|
|
|
+ if(type == (DBMessageBeanEntity).toString()){
|
|
|
return DBMessageBeanEntity().fromJson(json);
|
|
|
- } else if(type == (TouristGoodsBeanEntity).toString()){
|
|
|
+ }
|
|
|
+ if(type == (TouristGoodsBeanEntity).toString()){
|
|
|
return TouristGoodsBeanEntity().fromJson(json);
|
|
|
- } else if(type == (TouristGoodsBeanData).toString()){
|
|
|
+ }
|
|
|
+ if(type == (TouristGoodsBeanData).toString()){
|
|
|
return TouristGoodsBeanData().fromJson(json);
|
|
|
- } else if(type == (TableBeanEntity).toString()){
|
|
|
+ }
|
|
|
+ if(type == (TableBeanEntity).toString()){
|
|
|
return TableBeanEntity().fromJson(json);
|
|
|
- } else if(type == (WithdrawPricingBeanEntity).toString()){
|
|
|
+ }
|
|
|
+ if(type == (WithdrawPricingBeanEntity).toString()){
|
|
|
return WithdrawPricingBeanEntity().fromJson(json);
|
|
|
- } else if(type == (WithdrawPricingBeanData).toString()){
|
|
|
+ }
|
|
|
+ if(type == (WithdrawPricingBeanData).toString()){
|
|
|
return WithdrawPricingBeanData().fromJson(json);
|
|
|
- } else if(type == (WithdrawPricingBeanDataData).toString()){
|
|
|
+ }
|
|
|
+ if(type == (WithdrawPricingBeanDataData).toString()){
|
|
|
return WithdrawPricingBeanDataData().fromJson(json);
|
|
|
- } else if(type == (SystemInformationBeanEntity).toString()){
|
|
|
+ }
|
|
|
+ if(type == (SystemInformationBeanEntity).toString()){
|
|
|
return SystemInformationBeanEntity().fromJson(json);
|
|
|
- } else if(type == (SystemInformationBeanContent).toString()){
|
|
|
+ }
|
|
|
+ if(type == (SystemInformationBeanContent).toString()){
|
|
|
return SystemInformationBeanContent().fromJson(json);
|
|
|
- } else if(type == (MessageBeanEntity).toString()){
|
|
|
+ }
|
|
|
+ if(type == (MessageBeanEntity).toString()){
|
|
|
return MessageBeanEntity().fromJson(json);
|
|
|
- } else if(type == (MessageBeanContent).toString()){
|
|
|
+ }
|
|
|
+ if(type == (MessageBeanContent).toString()){
|
|
|
return MessageBeanContent().fromJson(json);
|
|
|
- } else if(type == (UserBeanEntity).toString()){
|
|
|
+ }
|
|
|
+ if(type == (UserBeanEntity).toString()){
|
|
|
return UserBeanEntity().fromJson(json);
|
|
|
- } else if(type == (UserBeanData).toString()){
|
|
|
+ }
|
|
|
+ if(type == (UserBeanData).toString()){
|
|
|
return UserBeanData().fromJson(json);
|
|
|
- } else if(type == (UserBeanDataData).toString()){
|
|
|
+ }
|
|
|
+ if(type == (UserBeanDataData).toString()){
|
|
|
return UserBeanDataData().fromJson(json);
|
|
|
- } else if(type == (SendMessageBeanEntity).toString()){
|
|
|
+ }
|
|
|
+ if(type == (SendMessageBeanEntity).toString()){
|
|
|
return SendMessageBeanEntity().fromJson(json);
|
|
|
- } else if(type == (UploadImageBeanEntity).toString()){
|
|
|
+ }
|
|
|
+ if(type == (UploadImageBeanEntity).toString()){
|
|
|
return UploadImageBeanEntity().fromJson(json);
|
|
|
- } else if(type == (UploadImageBeanData).toString()){
|
|
|
+ }
|
|
|
+ if(type == (UploadImageBeanData).toString()){
|
|
|
return UploadImageBeanData().fromJson(json);
|
|
|
- } else if(type == (AdPricingBeanEntity).toString()){
|
|
|
+ }
|
|
|
+ if(type == (AdPricingBeanEntity).toString()){
|
|
|
return AdPricingBeanEntity().fromJson(json);
|
|
|
- } else if(type == (AdPricingBeanData).toString()){
|
|
|
+ }
|
|
|
+ if(type == (AdPricingBeanData).toString()){
|
|
|
return AdPricingBeanData().fromJson(json);
|
|
|
- } else if(type == (MsgBeanDataEntity).toString()){
|
|
|
+ }
|
|
|
+ if(type == (MsgBeanDataEntity).toString()){
|
|
|
return MsgBeanDataEntity().fromJson(json);
|
|
|
- } else if(type == (UseXRayFlowBeanEntity).toString()){
|
|
|
+ }
|
|
|
+ if(type == (UseXRayFlowBeanEntity).toString()){
|
|
|
return UseXRayFlowBeanEntity().fromJson(json);
|
|
|
- } else if(type == (UseXRayFlowBeanData).toString()){
|
|
|
+ }
|
|
|
+ if(type == (UseXRayFlowBeanData).toString()){
|
|
|
return UseXRayFlowBeanData().fromJson(json);
|
|
|
- } else if(type == (UseXRayFlowBeanDataFlows).toString()){
|
|
|
+ }
|
|
|
+ if(type == (UseXRayFlowBeanDataFlows).toString()){
|
|
|
return UseXRayFlowBeanDataFlows().fromJson(json);
|
|
|
- } else if(type == (TouristPublicShopBeanEntity).toString()){
|
|
|
+ }
|
|
|
+ if(type == (TouristPublicShopBeanEntity).toString()){
|
|
|
return TouristPublicShopBeanEntity().fromJson(json);
|
|
|
- } else if(type == (TouristPublicShopBeanData).toString()){
|
|
|
+ }
|
|
|
+ if(type == (TouristPublicShopBeanData).toString()){
|
|
|
return TouristPublicShopBeanData().fromJson(json);
|
|
|
- } else if(type == (AdBeanEntity).toString()){
|
|
|
+ }
|
|
|
+ if(type == (AdBeanEntity).toString()){
|
|
|
return AdBeanEntity().fromJson(json);
|
|
|
- } else if(type == (AdBeanData).toString()){
|
|
|
+ }
|
|
|
+ if(type == (AdBeanData).toString()){
|
|
|
return AdBeanData().fromJson(json);
|
|
|
- } else if(type == (AdBeanDataData).toString()){
|
|
|
+ }
|
|
|
+ if(type == (AdBeanDataData).toString()){
|
|
|
return AdBeanDataData().fromJson(json);
|
|
|
- } else if(type == (AppStoreReviewBeanEntity).toString()){
|
|
|
+ }
|
|
|
+ if(type == (AppStoreReviewBeanEntity).toString()){
|
|
|
return AppStoreReviewBeanEntity().fromJson(json);
|
|
|
- } else if(type == (VpPricingBeanEntity).toString()){
|
|
|
+ }
|
|
|
+ if(type == (VpPricingBeanEntity).toString()){
|
|
|
return VpPricingBeanEntity().fromJson(json);
|
|
|
- } else if(type == (VpPricingBeanData).toString()){
|
|
|
+ }
|
|
|
+ if(type == (VpPricingBeanData).toString()){
|
|
|
return VpPricingBeanData().fromJson(json);
|
|
|
- } else if(type == (VpPricingBeanDataData).toString()){
|
|
|
+ }
|
|
|
+ if(type == (VpPricingBeanDataData).toString()){
|
|
|
return VpPricingBeanDataData().fromJson(json);
|
|
|
- } else if(type == (GoodsBeanEntity).toString()){
|
|
|
+ }
|
|
|
+ if(type == (GoodsBeanEntity).toString()){
|
|
|
return GoodsBeanEntity().fromJson(json);
|
|
|
- } else if(type == (GoodsBeanData).toString()){
|
|
|
+ }
|
|
|
+ if(type == (GoodsBeanData).toString()){
|
|
|
return GoodsBeanData().fromJson(json);
|
|
|
- } else if(type == (GoodsBeanDataData).toString()){
|
|
|
+ }
|
|
|
+ if(type == (GoodsBeanDataData).toString()){
|
|
|
return GoodsBeanDataData().fromJson(json);
|
|
|
- } else if(type == (NsqTypeBeanEntity).toString()){
|
|
|
+ }
|
|
|
+ if(type == (NsqTypeBeanEntity).toString()){
|
|
|
return NsqTypeBeanEntity().fromJson(json);
|
|
|
- } else if(type == (WXBeanEntity).toString()){
|
|
|
+ }
|
|
|
+ if(type == (WXBeanEntity).toString()){
|
|
|
return WXBeanEntity().fromJson(json);
|
|
|
- } else if(type == (MyCouponBeanEntity).toString()){
|
|
|
+ }
|
|
|
+ if(type == (MyCouponBeanEntity).toString()){
|
|
|
return MyCouponBeanEntity().fromJson(json);
|
|
|
- } else if(type == (MyCouponBeanData).toString()){
|
|
|
+ }
|
|
|
+ if(type == (MyCouponBeanData).toString()){
|
|
|
return MyCouponBeanData().fromJson(json);
|
|
|
- } else if(type == (MyCouponBeanDataData).toString()){
|
|
|
+ }
|
|
|
+ if(type == (MyCouponBeanDataData).toString()){
|
|
|
return MyCouponBeanDataData().fromJson(json);
|
|
|
- } else if(type == (AnnualFeeOrderBeanEntity).toString()){
|
|
|
+ }
|
|
|
+ if(type == (AnnualFeeOrderBeanEntity).toString()){
|
|
|
return AnnualFeeOrderBeanEntity().fromJson(json);
|
|
|
- } else if(type == (AnnualFeeOrderBeanData).toString()){
|
|
|
+ }
|
|
|
+ if(type == (AnnualFeeOrderBeanData).toString()){
|
|
|
return AnnualFeeOrderBeanData().fromJson(json);
|
|
|
- } else if(type == (SmartOrderBeanEntity).toString()){
|
|
|
+ }
|
|
|
+ if(type == (SmartOrderBeanEntity).toString()){
|
|
|
return SmartOrderBeanEntity().fromJson(json);
|
|
|
- } else if(type == (SmartOrderBeanData).toString()){
|
|
|
+ }
|
|
|
+ if(type == (SmartOrderBeanData).toString()){
|
|
|
return SmartOrderBeanData().fromJson(json);
|
|
|
- } else if(type == (SmartOrderBeanDataData).toString()){
|
|
|
+ }
|
|
|
+ if(type == (SmartOrderBeanDataData).toString()){
|
|
|
return SmartOrderBeanDataData().fromJson(json);
|
|
|
- } else if(type == (AddressBeanEntity).toString()){
|
|
|
+ }
|
|
|
+ if(type == (AddressBeanEntity).toString()){
|
|
|
return AddressBeanEntity().fromJson(json);
|
|
|
- } else if(type == (AddressBeanRegeocode).toString()){
|
|
|
+ }
|
|
|
+ if(type == (AddressBeanRegeocode).toString()){
|
|
|
return AddressBeanRegeocode().fromJson(json);
|
|
|
- } else if(type == (AddressBeanRegeocodeAddressComponent).toString()){
|
|
|
+ }
|
|
|
+ if(type == (AddressBeanRegeocodeAddressComponent).toString()){
|
|
|
return AddressBeanRegeocodeAddressComponent().fromJson(json);
|
|
|
- } else if(type == (AddressBeanRegeocodeAois).toString()){
|
|
|
+ }
|
|
|
+ if(type == (AddressBeanRegeocodeAois).toString()){
|
|
|
return AddressBeanRegeocodeAois().fromJson(json);
|
|
|
- } else if(type == (AddressBeanRegeocodePois).toString()){
|
|
|
+ }
|
|
|
+ if(type == (AddressBeanRegeocodePois).toString()){
|
|
|
return AddressBeanRegeocodePois().fromJson(json);
|
|
|
- } else if(type == (TemplateBeanEntity).toString()){
|
|
|
+ }
|
|
|
+ if(type == (TemplateBeanEntity).toString()){
|
|
|
return TemplateBeanEntity().fromJson(json);
|
|
|
- } else if(type == (TemplateBeanData).toString()){
|
|
|
+ }
|
|
|
+ if(type == (TemplateBeanData).toString()){
|
|
|
return TemplateBeanData().fromJson(json);
|
|
|
- } else if(type == (FlowBeanEntity).toString()){
|
|
|
+ }
|
|
|
+ if(type == (FlowBeanEntity).toString()){
|
|
|
return FlowBeanEntity().fromJson(json);
|
|
|
- } else if(type == (FlowBeanData).toString()){
|
|
|
+ }
|
|
|
+ if(type == (FlowBeanData).toString()){
|
|
|
return FlowBeanData().fromJson(json);
|
|
|
- } else if(type == (FlowBeanDataData).toString()){
|
|
|
+ }
|
|
|
+ if(type == (FlowBeanDataData).toString()){
|
|
|
return FlowBeanDataData().fromJson(json);
|
|
|
- } else if(type == (FlowBeanDataDataRecords).toString()){
|
|
|
+ }
|
|
|
+ if(type == (FlowBeanDataDataRecords).toString()){
|
|
|
return FlowBeanDataDataRecords().fromJson(json);
|
|
|
- }
|
|
|
+ }
|
|
|
+
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
@@ -752,221 +865,328 @@ class JsonConvert<T> {
|
|
|
static M _getListChildType<M>(List data) {
|
|
|
if(<CommodityCategoryBeanEntity>[] is M){
|
|
|
return data.map<CommodityCategoryBeanEntity>((e) => CommodityCategoryBeanEntity().fromJson(e)).toList() as M;
|
|
|
- } else if(<CommodityCategoryBeanData>[] is M){
|
|
|
+ }
|
|
|
+ if(<CommodityCategoryBeanData>[] is M){
|
|
|
return data.map<CommodityCategoryBeanData>((e) => CommodityCategoryBeanData().fromJson(e)).toList() as M;
|
|
|
- } else if(<CouponBeanEntity>[] is M){
|
|
|
+ }
|
|
|
+ if(<CouponBeanEntity>[] is M){
|
|
|
return data.map<CouponBeanEntity>((e) => CouponBeanEntity().fromJson(e)).toList() as M;
|
|
|
- } else if(<CouponBeanData>[] is M){
|
|
|
+ }
|
|
|
+ if(<CouponBeanData>[] is M){
|
|
|
return data.map<CouponBeanData>((e) => CouponBeanData().fromJson(e)).toList() as M;
|
|
|
- } else if(<CouponBeanDataData>[] is M){
|
|
|
+ }
|
|
|
+ if(<CouponBeanDataData>[] is M){
|
|
|
return data.map<CouponBeanDataData>((e) => CouponBeanDataData().fromJson(e)).toList() as M;
|
|
|
- } else if(<NewOrderBeanEntity>[] is M){
|
|
|
+ }
|
|
|
+ if(<NewOrderBeanEntity>[] is M){
|
|
|
return data.map<NewOrderBeanEntity>((e) => NewOrderBeanEntity().fromJson(e)).toList() as M;
|
|
|
- } else if(<NewOrderBeanContent>[] is M){
|
|
|
+ }
|
|
|
+ if(<NewOrderBeanContent>[] is M){
|
|
|
return data.map<NewOrderBeanContent>((e) => NewOrderBeanContent().fromJson(e)).toList() as M;
|
|
|
- } else if(<ShopUserUpBeanEntity>[] is M){
|
|
|
+ }
|
|
|
+ if(<ShopUserUpBeanEntity>[] is M){
|
|
|
return data.map<ShopUserUpBeanEntity>((e) => ShopUserUpBeanEntity().fromJson(e)).toList() as M;
|
|
|
- } else if(<MyShopBeanEntity>[] is M){
|
|
|
+ }
|
|
|
+ if(<MyShopBeanEntity>[] is M){
|
|
|
return data.map<MyShopBeanEntity>((e) => MyShopBeanEntity().fromJson(e)).toList() as M;
|
|
|
- } else if(<MyShopBeanData>[] is M){
|
|
|
+ }
|
|
|
+ if(<MyShopBeanData>[] is M){
|
|
|
return data.map<MyShopBeanData>((e) => MyShopBeanData().fromJson(e)).toList() as M;
|
|
|
- } else if(<MyShopBeanDataData>[] is M){
|
|
|
+ }
|
|
|
+ if(<MyShopBeanDataData>[] is M){
|
|
|
return data.map<MyShopBeanDataData>((e) => MyShopBeanDataData().fromJson(e)).toList() as M;
|
|
|
- } else if(<ComplainBeanEntity>[] is M){
|
|
|
+ }
|
|
|
+ if(<ComplainBeanEntity>[] is M){
|
|
|
return data.map<ComplainBeanEntity>((e) => ComplainBeanEntity().fromJson(e)).toList() as M;
|
|
|
- } else if(<ComplainBeanData>[] is M){
|
|
|
+ }
|
|
|
+ if(<ComplainBeanData>[] is M){
|
|
|
return data.map<ComplainBeanData>((e) => ComplainBeanData().fromJson(e)).toList() as M;
|
|
|
- } else if(<ComplainBeanDataData>[] is M){
|
|
|
+ }
|
|
|
+ if(<ComplainBeanDataData>[] is M){
|
|
|
return data.map<ComplainBeanDataData>((e) => ComplainBeanDataData().fromJson(e)).toList() as M;
|
|
|
- } else if(<AndroidAppVersionBeanEntity>[] is M){
|
|
|
+ }
|
|
|
+ if(<AndroidAppVersionBeanEntity>[] is M){
|
|
|
return data.map<AndroidAppVersionBeanEntity>((e) => AndroidAppVersionBeanEntity().fromJson(e)).toList() as M;
|
|
|
- } else if(<AndroidAppVersionBeanData>[] is M){
|
|
|
+ }
|
|
|
+ if(<AndroidAppVersionBeanData>[] is M){
|
|
|
return data.map<AndroidAppVersionBeanData>((e) => AndroidAppVersionBeanData().fromJson(e)).toList() as M;
|
|
|
- } else if(<HomeCarouselBeanEntity>[] is M){
|
|
|
+ }
|
|
|
+ if(<HomeCarouselBeanEntity>[] is M){
|
|
|
return data.map<HomeCarouselBeanEntity>((e) => HomeCarouselBeanEntity().fromJson(e)).toList() as M;
|
|
|
- } else if(<HomeCarouselBeanData>[] is M){
|
|
|
+ }
|
|
|
+ if(<HomeCarouselBeanData>[] is M){
|
|
|
return data.map<HomeCarouselBeanData>((e) => HomeCarouselBeanData().fromJson(e)).toList() as M;
|
|
|
- } else if(<AlipayResultBeanEntity>[] is M){
|
|
|
+ }
|
|
|
+ if(<AlipayResultBeanEntity>[] is M){
|
|
|
return data.map<AlipayResultBeanEntity>((e) => AlipayResultBeanEntity().fromJson(e)).toList() as M;
|
|
|
- } else if(<NewMsgBeanEntity>[] is M){
|
|
|
+ }
|
|
|
+ if(<NewMsgBeanEntity>[] is M){
|
|
|
return data.map<NewMsgBeanEntity>((e) => NewMsgBeanEntity().fromJson(e)).toList() as M;
|
|
|
- } else if(<NewMsgBeanContent>[] is M){
|
|
|
+ }
|
|
|
+ if(<NewMsgBeanContent>[] is M){
|
|
|
return data.map<NewMsgBeanContent>((e) => NewMsgBeanContent().fromJson(e)).toList() as M;
|
|
|
- } else if(<NewMsgBeanContentSender>[] is M){
|
|
|
+ }
|
|
|
+ if(<NewMsgBeanContentSender>[] is M){
|
|
|
return data.map<NewMsgBeanContentSender>((e) => NewMsgBeanContentSender().fromJson(e)).toList() as M;
|
|
|
- } else if(<NewMsgBeanContentReceiver>[] is M){
|
|
|
+ }
|
|
|
+ if(<NewMsgBeanContentReceiver>[] is M){
|
|
|
return data.map<NewMsgBeanContentReceiver>((e) => NewMsgBeanContentReceiver().fromJson(e)).toList() as M;
|
|
|
- } else if(<NewMsgBeanContentShop>[] is M){
|
|
|
+ }
|
|
|
+ if(<NewMsgBeanContentShop>[] is M){
|
|
|
return data.map<NewMsgBeanContentShop>((e) => NewMsgBeanContentShop().fromJson(e)).toList() as M;
|
|
|
- } else if(<NewMsgBeanContentOrder>[] is M){
|
|
|
+ }
|
|
|
+ if(<NewMsgBeanContentOrder>[] is M){
|
|
|
return data.map<NewMsgBeanContentOrder>((e) => NewMsgBeanContentOrder().fromJson(e)).toList() as M;
|
|
|
- } else if(<NewMsgBeanContentGoods>[] is M){
|
|
|
+ }
|
|
|
+ if(<NewMsgBeanContentGoods>[] is M){
|
|
|
return data.map<NewMsgBeanContentGoods>((e) => NewMsgBeanContentGoods().fromJson(e)).toList() as M;
|
|
|
- } else if(<FixedPriceBeanEntity>[] is M){
|
|
|
+ }
|
|
|
+ if(<FixedPriceBeanEntity>[] is M){
|
|
|
return data.map<FixedPriceBeanEntity>((e) => FixedPriceBeanEntity().fromJson(e)).toList() as M;
|
|
|
- } else if(<FixedPriceBeanData>[] is M){
|
|
|
+ }
|
|
|
+ if(<FixedPriceBeanData>[] is M){
|
|
|
return data.map<FixedPriceBeanData>((e) => FixedPriceBeanData().fromJson(e)).toList() as M;
|
|
|
- } else if(<PayByAlipayBeanEntity>[] is M){
|
|
|
+ }
|
|
|
+ if(<PayByAlipayBeanEntity>[] is M){
|
|
|
return data.map<PayByAlipayBeanEntity>((e) => PayByAlipayBeanEntity().fromJson(e)).toList() as M;
|
|
|
- } else if(<PayByWeChatBeanEntity>[] is M){
|
|
|
+ }
|
|
|
+ if(<PayByWeChatBeanEntity>[] is M){
|
|
|
return data.map<PayByWeChatBeanEntity>((e) => PayByWeChatBeanEntity().fromJson(e)).toList() as M;
|
|
|
- } else if(<PayByWeChatBeanData>[] is M){
|
|
|
+ }
|
|
|
+ if(<PayByWeChatBeanData>[] is M){
|
|
|
return data.map<PayByWeChatBeanData>((e) => PayByWeChatBeanData().fromJson(e)).toList() as M;
|
|
|
- } else if(<AccessBeanEntity>[] is M){
|
|
|
+ }
|
|
|
+ if(<AccessBeanEntity>[] is M){
|
|
|
return data.map<AccessBeanEntity>((e) => AccessBeanEntity().fromJson(e)).toList() as M;
|
|
|
- } else if(<UserVpBeanEntity>[] is M){
|
|
|
+ }
|
|
|
+ if(<SaveImageBeanEntity>[] is M){
|
|
|
+ return data.map<SaveImageBeanEntity>((e) => SaveImageBeanEntity().fromJson(e)).toList() as M;
|
|
|
+ }
|
|
|
+ if(<UserVpBeanEntity>[] is M){
|
|
|
return data.map<UserVpBeanEntity>((e) => UserVpBeanEntity().fromJson(e)).toList() as M;
|
|
|
- } else if(<UserVpBeanData>[] is M){
|
|
|
+ }
|
|
|
+ if(<UserVpBeanData>[] is M){
|
|
|
return data.map<UserVpBeanData>((e) => UserVpBeanData().fromJson(e)).toList() as M;
|
|
|
- } else if(<UserVpBeanDataData>[] is M){
|
|
|
+ }
|
|
|
+ if(<UserVpBeanDataData>[] is M){
|
|
|
return data.map<UserVpBeanDataData>((e) => UserVpBeanDataData().fromJson(e)).toList() as M;
|
|
|
- } else if(<UserBalanceEntity>[] is M){
|
|
|
+ }
|
|
|
+ if(<UserBalanceEntity>[] is M){
|
|
|
return data.map<UserBalanceEntity>((e) => UserBalanceEntity().fromJson(e)).toList() as M;
|
|
|
- } else if(<LoginInformationBeanEntity>[] is M){
|
|
|
+ }
|
|
|
+ if(<LoginInformationBeanEntity>[] is M){
|
|
|
return data.map<LoginInformationBeanEntity>((e) => LoginInformationBeanEntity().fromJson(e)).toList() as M;
|
|
|
- } else if(<LoginInformationBeanData>[] is M){
|
|
|
+ }
|
|
|
+ if(<LoginInformationBeanData>[] is M){
|
|
|
return data.map<LoginInformationBeanData>((e) => LoginInformationBeanData().fromJson(e)).toList() as M;
|
|
|
- } else if(<LoginInformationBeanDataExtra>[] is M){
|
|
|
+ }
|
|
|
+ if(<LoginInformationBeanDataExtra>[] is M){
|
|
|
return data.map<LoginInformationBeanDataExtra>((e) => LoginInformationBeanDataExtra().fromJson(e)).toList() as M;
|
|
|
- } else if(<StoreBeanEntity>[] is M){
|
|
|
+ }
|
|
|
+ if(<StoreBeanEntity>[] is M){
|
|
|
return data.map<StoreBeanEntity>((e) => StoreBeanEntity().fromJson(e)).toList() as M;
|
|
|
- } else if(<StoreBeanData>[] is M){
|
|
|
+ }
|
|
|
+ if(<StoreBeanData>[] is M){
|
|
|
return data.map<StoreBeanData>((e) => StoreBeanData().fromJson(e)).toList() as M;
|
|
|
- } else if(<StoreBeanDataData>[] is M){
|
|
|
+ }
|
|
|
+ if(<StoreBeanDataData>[] is M){
|
|
|
return data.map<StoreBeanDataData>((e) => StoreBeanDataData().fromJson(e)).toList() as M;
|
|
|
- } else if(<OfflinePaymentBeanEntity>[] is M){
|
|
|
+ }
|
|
|
+ if(<OfflinePaymentBeanEntity>[] is M){
|
|
|
return data.map<OfflinePaymentBeanEntity>((e) => OfflinePaymentBeanEntity().fromJson(e)).toList() as M;
|
|
|
- } else if(<SaveOrderBeanEntity>[] is M){
|
|
|
+ }
|
|
|
+ if(<SaveOrderBeanEntity>[] is M){
|
|
|
return data.map<SaveOrderBeanEntity>((e) => SaveOrderBeanEntity().fromJson(e)).toList() as M;
|
|
|
- } else if(<PayWayBeanEntity>[] is M){
|
|
|
+ }
|
|
|
+ if(<PayWayBeanEntity>[] is M){
|
|
|
return data.map<PayWayBeanEntity>((e) => PayWayBeanEntity().fromJson(e)).toList() as M;
|
|
|
- } else if(<PayWayBeanData>[] is M){
|
|
|
+ }
|
|
|
+ if(<PayWayBeanData>[] is M){
|
|
|
return data.map<PayWayBeanData>((e) => PayWayBeanData().fromJson(e)).toList() as M;
|
|
|
- } else if(<SystemInformationBeanListEntity>[] is M){
|
|
|
+ }
|
|
|
+ if(<SystemInformationBeanListEntity>[] is M){
|
|
|
return data.map<SystemInformationBeanListEntity>((e) => SystemInformationBeanListEntity().fromJson(e)).toList() as M;
|
|
|
- } else if(<SystemInformationBeanListContent>[] is M){
|
|
|
+ }
|
|
|
+ if(<SystemInformationBeanListContent>[] is M){
|
|
|
return data.map<SystemInformationBeanListContent>((e) => SystemInformationBeanListContent().fromJson(e)).toList() as M;
|
|
|
- } else if(<DBMessageBeanEntity>[] is M){
|
|
|
+ }
|
|
|
+ if(<DBMessageBeanEntity>[] is M){
|
|
|
return data.map<DBMessageBeanEntity>((e) => DBMessageBeanEntity().fromJson(e)).toList() as M;
|
|
|
- } else if(<TouristGoodsBeanEntity>[] is M){
|
|
|
+ }
|
|
|
+ if(<TouristGoodsBeanEntity>[] is M){
|
|
|
return data.map<TouristGoodsBeanEntity>((e) => TouristGoodsBeanEntity().fromJson(e)).toList() as M;
|
|
|
- } else if(<TouristGoodsBeanData>[] is M){
|
|
|
+ }
|
|
|
+ if(<TouristGoodsBeanData>[] is M){
|
|
|
return data.map<TouristGoodsBeanData>((e) => TouristGoodsBeanData().fromJson(e)).toList() as M;
|
|
|
- } else if(<TableBeanEntity>[] is M){
|
|
|
+ }
|
|
|
+ if(<TableBeanEntity>[] is M){
|
|
|
return data.map<TableBeanEntity>((e) => TableBeanEntity().fromJson(e)).toList() as M;
|
|
|
- } else if(<WithdrawPricingBeanEntity>[] is M){
|
|
|
+ }
|
|
|
+ if(<WithdrawPricingBeanEntity>[] is M){
|
|
|
return data.map<WithdrawPricingBeanEntity>((e) => WithdrawPricingBeanEntity().fromJson(e)).toList() as M;
|
|
|
- } else if(<WithdrawPricingBeanData>[] is M){
|
|
|
+ }
|
|
|
+ if(<WithdrawPricingBeanData>[] is M){
|
|
|
return data.map<WithdrawPricingBeanData>((e) => WithdrawPricingBeanData().fromJson(e)).toList() as M;
|
|
|
- } else if(<WithdrawPricingBeanDataData>[] is M){
|
|
|
+ }
|
|
|
+ if(<WithdrawPricingBeanDataData>[] is M){
|
|
|
return data.map<WithdrawPricingBeanDataData>((e) => WithdrawPricingBeanDataData().fromJson(e)).toList() as M;
|
|
|
- } else if(<SystemInformationBeanEntity>[] is M){
|
|
|
+ }
|
|
|
+ if(<SystemInformationBeanEntity>[] is M){
|
|
|
return data.map<SystemInformationBeanEntity>((e) => SystemInformationBeanEntity().fromJson(e)).toList() as M;
|
|
|
- } else if(<SystemInformationBeanContent>[] is M){
|
|
|
+ }
|
|
|
+ if(<SystemInformationBeanContent>[] is M){
|
|
|
return data.map<SystemInformationBeanContent>((e) => SystemInformationBeanContent().fromJson(e)).toList() as M;
|
|
|
- } else if(<MessageBeanEntity>[] is M){
|
|
|
+ }
|
|
|
+ if(<MessageBeanEntity>[] is M){
|
|
|
return data.map<MessageBeanEntity>((e) => MessageBeanEntity().fromJson(e)).toList() as M;
|
|
|
- } else if(<MessageBeanContent>[] is M){
|
|
|
+ }
|
|
|
+ if(<MessageBeanContent>[] is M){
|
|
|
return data.map<MessageBeanContent>((e) => MessageBeanContent().fromJson(e)).toList() as M;
|
|
|
- } else if(<UserBeanEntity>[] is M){
|
|
|
+ }
|
|
|
+ if(<UserBeanEntity>[] is M){
|
|
|
return data.map<UserBeanEntity>((e) => UserBeanEntity().fromJson(e)).toList() as M;
|
|
|
- } else if(<UserBeanData>[] is M){
|
|
|
+ }
|
|
|
+ if(<UserBeanData>[] is M){
|
|
|
return data.map<UserBeanData>((e) => UserBeanData().fromJson(e)).toList() as M;
|
|
|
- } else if(<UserBeanDataData>[] is M){
|
|
|
+ }
|
|
|
+ if(<UserBeanDataData>[] is M){
|
|
|
return data.map<UserBeanDataData>((e) => UserBeanDataData().fromJson(e)).toList() as M;
|
|
|
- } else if(<SendMessageBeanEntity>[] is M){
|
|
|
+ }
|
|
|
+ if(<SendMessageBeanEntity>[] is M){
|
|
|
return data.map<SendMessageBeanEntity>((e) => SendMessageBeanEntity().fromJson(e)).toList() as M;
|
|
|
- } else if(<UploadImageBeanEntity>[] is M){
|
|
|
+ }
|
|
|
+ if(<UploadImageBeanEntity>[] is M){
|
|
|
return data.map<UploadImageBeanEntity>((e) => UploadImageBeanEntity().fromJson(e)).toList() as M;
|
|
|
- } else if(<UploadImageBeanData>[] is M){
|
|
|
+ }
|
|
|
+ if(<UploadImageBeanData>[] is M){
|
|
|
return data.map<UploadImageBeanData>((e) => UploadImageBeanData().fromJson(e)).toList() as M;
|
|
|
- } else if(<AdPricingBeanEntity>[] is M){
|
|
|
+ }
|
|
|
+ if(<AdPricingBeanEntity>[] is M){
|
|
|
return data.map<AdPricingBeanEntity>((e) => AdPricingBeanEntity().fromJson(e)).toList() as M;
|
|
|
- } else if(<AdPricingBeanData>[] is M){
|
|
|
+ }
|
|
|
+ if(<AdPricingBeanData>[] is M){
|
|
|
return data.map<AdPricingBeanData>((e) => AdPricingBeanData().fromJson(e)).toList() as M;
|
|
|
- } else if(<MsgBeanDataEntity>[] is M){
|
|
|
+ }
|
|
|
+ if(<MsgBeanDataEntity>[] is M){
|
|
|
return data.map<MsgBeanDataEntity>((e) => MsgBeanDataEntity().fromJson(e)).toList() as M;
|
|
|
- } else if(<UseXRayFlowBeanEntity>[] is M){
|
|
|
+ }
|
|
|
+ if(<UseXRayFlowBeanEntity>[] is M){
|
|
|
return data.map<UseXRayFlowBeanEntity>((e) => UseXRayFlowBeanEntity().fromJson(e)).toList() as M;
|
|
|
- } else if(<UseXRayFlowBeanData>[] is M){
|
|
|
+ }
|
|
|
+ if(<UseXRayFlowBeanData>[] is M){
|
|
|
return data.map<UseXRayFlowBeanData>((e) => UseXRayFlowBeanData().fromJson(e)).toList() as M;
|
|
|
- } else if(<UseXRayFlowBeanDataFlows>[] is M){
|
|
|
+ }
|
|
|
+ if(<UseXRayFlowBeanDataFlows>[] is M){
|
|
|
return data.map<UseXRayFlowBeanDataFlows>((e) => UseXRayFlowBeanDataFlows().fromJson(e)).toList() as M;
|
|
|
- } else if(<TouristPublicShopBeanEntity>[] is M){
|
|
|
+ }
|
|
|
+ if(<TouristPublicShopBeanEntity>[] is M){
|
|
|
return data.map<TouristPublicShopBeanEntity>((e) => TouristPublicShopBeanEntity().fromJson(e)).toList() as M;
|
|
|
- } else if(<TouristPublicShopBeanData>[] is M){
|
|
|
+ }
|
|
|
+ if(<TouristPublicShopBeanData>[] is M){
|
|
|
return data.map<TouristPublicShopBeanData>((e) => TouristPublicShopBeanData().fromJson(e)).toList() as M;
|
|
|
- } else if(<AdBeanEntity>[] is M){
|
|
|
+ }
|
|
|
+ if(<AdBeanEntity>[] is M){
|
|
|
return data.map<AdBeanEntity>((e) => AdBeanEntity().fromJson(e)).toList() as M;
|
|
|
- } else if(<AdBeanData>[] is M){
|
|
|
+ }
|
|
|
+ if(<AdBeanData>[] is M){
|
|
|
return data.map<AdBeanData>((e) => AdBeanData().fromJson(e)).toList() as M;
|
|
|
- } else if(<AdBeanDataData>[] is M){
|
|
|
+ }
|
|
|
+ if(<AdBeanDataData>[] is M){
|
|
|
return data.map<AdBeanDataData>((e) => AdBeanDataData().fromJson(e)).toList() as M;
|
|
|
- } else if(<AppStoreReviewBeanEntity>[] is M){
|
|
|
+ }
|
|
|
+ if(<AppStoreReviewBeanEntity>[] is M){
|
|
|
return data.map<AppStoreReviewBeanEntity>((e) => AppStoreReviewBeanEntity().fromJson(e)).toList() as M;
|
|
|
- } else if(<VpPricingBeanEntity>[] is M){
|
|
|
+ }
|
|
|
+ if(<VpPricingBeanEntity>[] is M){
|
|
|
return data.map<VpPricingBeanEntity>((e) => VpPricingBeanEntity().fromJson(e)).toList() as M;
|
|
|
- } else if(<VpPricingBeanData>[] is M){
|
|
|
+ }
|
|
|
+ if(<VpPricingBeanData>[] is M){
|
|
|
return data.map<VpPricingBeanData>((e) => VpPricingBeanData().fromJson(e)).toList() as M;
|
|
|
- } else if(<VpPricingBeanDataData>[] is M){
|
|
|
+ }
|
|
|
+ if(<VpPricingBeanDataData>[] is M){
|
|
|
return data.map<VpPricingBeanDataData>((e) => VpPricingBeanDataData().fromJson(e)).toList() as M;
|
|
|
- } else if(<GoodsBeanEntity>[] is M){
|
|
|
+ }
|
|
|
+ if(<GoodsBeanEntity>[] is M){
|
|
|
return data.map<GoodsBeanEntity>((e) => GoodsBeanEntity().fromJson(e)).toList() as M;
|
|
|
- } else if(<GoodsBeanData>[] is M){
|
|
|
+ }
|
|
|
+ if(<GoodsBeanData>[] is M){
|
|
|
return data.map<GoodsBeanData>((e) => GoodsBeanData().fromJson(e)).toList() as M;
|
|
|
- } else if(<GoodsBeanDataData>[] is M){
|
|
|
+ }
|
|
|
+ if(<GoodsBeanDataData>[] is M){
|
|
|
return data.map<GoodsBeanDataData>((e) => GoodsBeanDataData().fromJson(e)).toList() as M;
|
|
|
- } else if(<NsqTypeBeanEntity>[] is M){
|
|
|
+ }
|
|
|
+ if(<NsqTypeBeanEntity>[] is M){
|
|
|
return data.map<NsqTypeBeanEntity>((e) => NsqTypeBeanEntity().fromJson(e)).toList() as M;
|
|
|
- } else if(<WXBeanEntity>[] is M){
|
|
|
+ }
|
|
|
+ if(<WXBeanEntity>[] is M){
|
|
|
return data.map<WXBeanEntity>((e) => WXBeanEntity().fromJson(e)).toList() as M;
|
|
|
- } else if(<MyCouponBeanEntity>[] is M){
|
|
|
+ }
|
|
|
+ if(<MyCouponBeanEntity>[] is M){
|
|
|
return data.map<MyCouponBeanEntity>((e) => MyCouponBeanEntity().fromJson(e)).toList() as M;
|
|
|
- } else if(<MyCouponBeanData>[] is M){
|
|
|
+ }
|
|
|
+ if(<MyCouponBeanData>[] is M){
|
|
|
return data.map<MyCouponBeanData>((e) => MyCouponBeanData().fromJson(e)).toList() as M;
|
|
|
- } else if(<MyCouponBeanDataData>[] is M){
|
|
|
+ }
|
|
|
+ if(<MyCouponBeanDataData>[] is M){
|
|
|
return data.map<MyCouponBeanDataData>((e) => MyCouponBeanDataData().fromJson(e)).toList() as M;
|
|
|
- } else if(<AnnualFeeOrderBeanEntity>[] is M){
|
|
|
+ }
|
|
|
+ if(<AnnualFeeOrderBeanEntity>[] is M){
|
|
|
return data.map<AnnualFeeOrderBeanEntity>((e) => AnnualFeeOrderBeanEntity().fromJson(e)).toList() as M;
|
|
|
- } else if(<AnnualFeeOrderBeanData>[] is M){
|
|
|
+ }
|
|
|
+ if(<AnnualFeeOrderBeanData>[] is M){
|
|
|
return data.map<AnnualFeeOrderBeanData>((e) => AnnualFeeOrderBeanData().fromJson(e)).toList() as M;
|
|
|
- } else if(<SmartOrderBeanEntity>[] is M){
|
|
|
+ }
|
|
|
+ if(<SmartOrderBeanEntity>[] is M){
|
|
|
return data.map<SmartOrderBeanEntity>((e) => SmartOrderBeanEntity().fromJson(e)).toList() as M;
|
|
|
- } else if(<SmartOrderBeanData>[] is M){
|
|
|
+ }
|
|
|
+ if(<SmartOrderBeanData>[] is M){
|
|
|
return data.map<SmartOrderBeanData>((e) => SmartOrderBeanData().fromJson(e)).toList() as M;
|
|
|
- } else if(<SmartOrderBeanDataData>[] is M){
|
|
|
+ }
|
|
|
+ if(<SmartOrderBeanDataData>[] is M){
|
|
|
return data.map<SmartOrderBeanDataData>((e) => SmartOrderBeanDataData().fromJson(e)).toList() as M;
|
|
|
- } else if(<AddressBeanEntity>[] is M){
|
|
|
+ }
|
|
|
+ if(<AddressBeanEntity>[] is M){
|
|
|
return data.map<AddressBeanEntity>((e) => AddressBeanEntity().fromJson(e)).toList() as M;
|
|
|
- } else if(<AddressBeanRegeocode>[] is M){
|
|
|
+ }
|
|
|
+ if(<AddressBeanRegeocode>[] is M){
|
|
|
return data.map<AddressBeanRegeocode>((e) => AddressBeanRegeocode().fromJson(e)).toList() as M;
|
|
|
- } else if(<AddressBeanRegeocodeAddressComponent>[] is M){
|
|
|
+ }
|
|
|
+ if(<AddressBeanRegeocodeAddressComponent>[] is M){
|
|
|
return data.map<AddressBeanRegeocodeAddressComponent>((e) => AddressBeanRegeocodeAddressComponent().fromJson(e)).toList() as M;
|
|
|
- } else if(<AddressBeanRegeocodeAois>[] is M){
|
|
|
+ }
|
|
|
+ if(<AddressBeanRegeocodeAois>[] is M){
|
|
|
return data.map<AddressBeanRegeocodeAois>((e) => AddressBeanRegeocodeAois().fromJson(e)).toList() as M;
|
|
|
- } else if(<AddressBeanRegeocodePois>[] is M){
|
|
|
+ }
|
|
|
+ if(<AddressBeanRegeocodePois>[] is M){
|
|
|
return data.map<AddressBeanRegeocodePois>((e) => AddressBeanRegeocodePois().fromJson(e)).toList() as M;
|
|
|
- } else if(<TemplateBeanEntity>[] is M){
|
|
|
+ }
|
|
|
+ if(<TemplateBeanEntity>[] is M){
|
|
|
return data.map<TemplateBeanEntity>((e) => TemplateBeanEntity().fromJson(e)).toList() as M;
|
|
|
- } else if(<TemplateBeanData>[] is M){
|
|
|
+ }
|
|
|
+ if(<TemplateBeanData>[] is M){
|
|
|
return data.map<TemplateBeanData>((e) => TemplateBeanData().fromJson(e)).toList() as M;
|
|
|
- } else if(<FlowBeanEntity>[] is M){
|
|
|
+ }
|
|
|
+ if(<FlowBeanEntity>[] is M){
|
|
|
return data.map<FlowBeanEntity>((e) => FlowBeanEntity().fromJson(e)).toList() as M;
|
|
|
- } else if(<FlowBeanData>[] is M){
|
|
|
+ }
|
|
|
+ if(<FlowBeanData>[] is M){
|
|
|
return data.map<FlowBeanData>((e) => FlowBeanData().fromJson(e)).toList() as M;
|
|
|
- } else if(<FlowBeanDataData>[] is M){
|
|
|
+ }
|
|
|
+ if(<FlowBeanDataData>[] is M){
|
|
|
return data.map<FlowBeanDataData>((e) => FlowBeanDataData().fromJson(e)).toList() as M;
|
|
|
- } else if(<FlowBeanDataDataRecords>[] is M){
|
|
|
+ }
|
|
|
+ if(<FlowBeanDataDataRecords>[] is M){
|
|
|
return data.map<FlowBeanDataDataRecords>((e) => FlowBeanDataDataRecords().fromJson(e)).toList() as M;
|
|
|
}
|
|
|
- throw Exception("not fond");
|
|
|
+
|
|
|
+ throw Exception("not found");
|
|
|
}
|
|
|
|
|
|
static M fromJsonAsT<M>(json) {
|
|
|
- if (json is List) {
|
|
|
- return _getListChildType<M>(json);
|
|
|
- } else {
|
|
|
- return _fromJsonSingle<M>(json) as M;
|
|
|
- }
|
|
|
- }
|
|
|
+ if (json is List) {
|
|
|
+ return _getListChildType<M>(json);
|
|
|
+ } else {
|
|
|
+ return _fromJsonSingle<M>(json) as M;
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|