// ignore_for_file: non_constant_identifier_names // ignore_for_file: camel_case_types // ignore_for_file: prefer_single_quotes // This file is automatically generated. DO NOT EDIT, all your changes would be lost. import 'package:bbyyy/beans/access_bean_entity.dart'; import 'package:bbyyy/generated/json/access_bean_entity.g.dart'; import 'package:bbyyy/beans/activity_bean_entity.dart'; import 'package:bbyyy/generated/json/activity_bean_entity.g.dart'; import 'package:bbyyy/beans/ad_bean_entity.dart'; import 'package:bbyyy/generated/json/ad_bean_entity.g.dart'; import 'package:bbyyy/beans/ad_pricing_bean_entity.dart'; import 'package:bbyyy/generated/json/ad_pricing_bean_entity.g.dart'; import 'package:bbyyy/beans/address_bean_entity.dart'; import 'package:bbyyy/generated/json/address_bean_entity.g.dart'; import 'package:bbyyy/beans/alipay_result_bean_entity.dart'; import 'package:bbyyy/generated/json/alipay_result_bean_entity.g.dart'; import 'package:bbyyy/beans/android_app_version_bean_entity.dart'; import 'package:bbyyy/generated/json/android_app_version_bean_entity.g.dart'; import 'package:bbyyy/beans/annual_fee_order_bean_entity.dart'; import 'package:bbyyy/generated/json/annual_fee_order_bean_entity.g.dart'; import 'package:bbyyy/beans/app_store_review_bean_entity.dart'; import 'package:bbyyy/generated/json/app_store_review_bean_entity.g.dart'; import 'package:bbyyy/beans/apply_for_red_packet_bean_entity.dart'; import 'package:bbyyy/generated/json/apply_for_red_packet_bean_entity.g.dart'; import 'package:bbyyy/beans/commodity_category_bean_entity.dart'; import 'package:bbyyy/generated/json/commodity_category_bean_entity.g.dart'; import 'package:bbyyy/beans/complain_bean_entity.dart'; import 'package:bbyyy/generated/json/complain_bean_entity.g.dart'; import 'package:bbyyy/beans/coupon_bean_entity.dart'; import 'package:bbyyy/generated/json/coupon_bean_entity.g.dart'; import 'package:bbyyy/beans/d_b_message_bean_entity.dart'; import 'package:bbyyy/generated/json/d_b_message_bean_entity.g.dart'; import 'package:bbyyy/beans/fixed_price_bean_entity.dart'; import 'package:bbyyy/generated/json/fixed_price_bean_entity.g.dart'; import 'package:bbyyy/beans/flow_bean_entity.dart'; import 'package:bbyyy/generated/json/flow_bean_entity.g.dart'; import 'package:bbyyy/beans/goods_bean_entity.dart'; import 'package:bbyyy/generated/json/goods_bean_entity.g.dart'; import 'package:bbyyy/beans/grab_a_red_envelope_bean_entity.dart'; import 'package:bbyyy/generated/json/grab_a_red_envelope_bean_entity.g.dart'; import 'package:bbyyy/beans/home_carousel_bean_entity.dart'; import 'package:bbyyy/generated/json/home_carousel_bean_entity.g.dart'; import 'package:bbyyy/beans/login_information_bean_entity.dart'; import 'package:bbyyy/generated/json/login_information_bean_entity.g.dart'; import 'package:bbyyy/beans/message_bean_entity.dart'; import 'package:bbyyy/generated/json/message_bean_entity.g.dart'; import 'package:bbyyy/beans/msg_bean_data_entity.dart'; import 'package:bbyyy/generated/json/msg_bean_data_entity.g.dart'; import 'package:bbyyy/beans/my_coupon_bean_entity.dart'; import 'package:bbyyy/generated/json/my_coupon_bean_entity.g.dart'; import 'package:bbyyy/beans/my_shop_bean_entity.dart'; import 'package:bbyyy/generated/json/my_shop_bean_entity.g.dart'; import 'package:bbyyy/beans/new_msg_bean_entity.dart'; import 'package:bbyyy/generated/json/new_msg_bean_entity.g.dart'; import 'package:bbyyy/beans/new_order_bean_entity.dart'; import 'package:bbyyy/generated/json/new_order_bean_entity.g.dart'; import 'package:bbyyy/beans/nsq_type_bean_entity.dart'; import 'package:bbyyy/generated/json/nsq_type_bean_entity.g.dart'; import 'package:bbyyy/beans/offline_payment_bean_entity.dart'; import 'package:bbyyy/generated/json/offline_payment_bean_entity.g.dart'; import 'package:bbyyy/beans/pay_by_alipay_bean_entity.dart'; import 'package:bbyyy/generated/json/pay_by_alipay_bean_entity.g.dart'; import 'package:bbyyy/beans/pay_by_we_chat_bean_entity.dart'; import 'package:bbyyy/generated/json/pay_by_we_chat_bean_entity.g.dart'; import 'package:bbyyy/beans/pay_way_bean_entity.dart'; import 'package:bbyyy/generated/json/pay_way_bean_entity.g.dart'; import 'package:bbyyy/beans/poi_bean_entity.dart'; import 'package:bbyyy/generated/json/poi_bean_entity.g.dart'; import 'package:bbyyy/beans/red_envelope_wall_bean_entity.dart'; import 'package:bbyyy/generated/json/red_envelope_wall_bean_entity.g.dart'; import 'package:bbyyy/beans/save_image_bean_entity.dart'; import 'package:bbyyy/generated/json/save_image_bean_entity.g.dart'; import 'package:bbyyy/beans/save_order_bean_entity.dart'; import 'package:bbyyy/generated/json/save_order_bean_entity.g.dart'; import 'package:bbyyy/beans/save_qr_code_bean_entity.dart'; import 'package:bbyyy/generated/json/save_qr_code_bean_entity.g.dart'; import 'package:bbyyy/beans/send_message_bean_entity.dart'; import 'package:bbyyy/generated/json/send_message_bean_entity.g.dart'; import 'package:bbyyy/beans/shop_user_up_bean_entity.dart'; import 'package:bbyyy/generated/json/shop_user_up_bean_entity.g.dart'; import 'package:bbyyy/beans/smart_order_bean_entity.dart'; import 'package:bbyyy/generated/json/smart_order_bean_entity.g.dart'; import 'package:bbyyy/beans/store_bean_entity.dart'; import 'package:bbyyy/generated/json/store_bean_entity.g.dart'; import 'package:bbyyy/beans/system_information_bean_entity.dart'; import 'package:bbyyy/generated/json/system_information_bean_entity.g.dart'; import 'package:bbyyy/beans/system_information_bean_list_entity.dart'; import 'package:bbyyy/generated/json/system_information_bean_list_entity.g.dart'; import 'package:bbyyy/beans/table_bean_entity.dart'; import 'package:bbyyy/generated/json/table_bean_entity.g.dart'; import 'package:bbyyy/beans/template_bean_entity.dart'; import 'package:bbyyy/generated/json/template_bean_entity.g.dart'; import 'package:bbyyy/beans/tourist_goods_bean_entity.dart'; import 'package:bbyyy/generated/json/tourist_goods_bean_entity.g.dart'; import 'package:bbyyy/beans/tourist_public_shop_bean_entity.dart'; import 'package:bbyyy/generated/json/tourist_public_shop_bean_entity.g.dart'; import 'package:bbyyy/beans/upload_image_bean_entity.dart'; import 'package:bbyyy/generated/json/upload_image_bean_entity.g.dart'; import 'package:bbyyy/beans/use_x_ray_flow_bean_entity.dart'; import 'package:bbyyy/generated/json/use_x_ray_flow_bean_entity.g.dart'; import 'package:bbyyy/beans/user_balance_entity.dart'; import 'package:bbyyy/generated/json/user_balance_entity.g.dart'; import 'package:bbyyy/beans/user_bean_entity.dart'; import 'package:bbyyy/generated/json/user_bean_entity.g.dart'; import 'package:bbyyy/beans/user_vp_bean_entity.dart'; import 'package:bbyyy/generated/json/user_vp_bean_entity.g.dart'; import 'package:bbyyy/beans/vp_pricing_bean_entity.dart'; import 'package:bbyyy/generated/json/vp_pricing_bean_entity.g.dart'; import 'package:bbyyy/beans/w_x_bean_entity.dart'; import 'package:bbyyy/generated/json/w_x_bean_entity.g.dart'; import 'package:bbyyy/beans/withdraw_pricing_bean_entity.dart'; import 'package:bbyyy/generated/json/withdraw_pricing_bean_entity.g.dart'; JsonConvert jsonConvert = JsonConvert(); class JsonConvert { T convert(dynamic value) { if (value == null) { return null; } return asT(value); } List convertList(List value) { if (value == null) { return null; } try { return value.map((e) => asT(e)).toList(); } catch (e, stackTrace) { print('asT<$T> $e $stackTrace'); return []; } } List convertListNotNull(List value) { if (value == null) { return null; } try { return value.map((e) => asT(e)).toList(); } catch (e, stackTrace) { print('asT<$T> $e $stackTrace'); return []; } } T asT(dynamic value) { if (value is T) { return value; } String type = T.toString(); try { final String valueS = value.toString(); if (type == "String") { return valueS as T; } else if (type == "int") { int intValue = int.tryParse(valueS); if (intValue == null) { return double.tryParse(valueS) .toInt() as T ; } else { return intValue as T; } } else if (type == "double") { return double.parse(valueS) as T; } else if (type == "DateTime") { return DateTime.parse(valueS) as T; } else if (type == "bool") { if (valueS == '0' || valueS == '1') { return (valueS == '1') as T; } return (valueS == 'true') as T; } else { return JsonConvert.fromJsonAsT(value); } } catch (e, stackTrace) { print('asT<$T> $e $stackTrace'); return null; } } //Go back to a single instance by type static _fromJsonSingle( json) { String type = M.toString(); if(type == (AccessBeanEntity).toString()){ return AccessBeanEntity.fromJson(json); } if(type == (ActivityBeanEntity).toString()){ return ActivityBeanEntity.fromJson(json); } if(type == (ActivityBeanData).toString()){ return ActivityBeanData.fromJson(json); } if(type == (AdBeanEntity).toString()){ return AdBeanEntity.fromJson(json); } if(type == (AdBeanData).toString()){ return AdBeanData.fromJson(json); } if(type == (AdBeanDataData).toString()){ return AdBeanDataData.fromJson(json); } if(type == (AdPricingBeanEntity).toString()){ return AdPricingBeanEntity.fromJson(json); } if(type == (AdPricingBeanData).toString()){ return AdPricingBeanData.fromJson(json); } if(type == (AddressBeanEntity).toString()){ return AddressBeanEntity.fromJson(json); } if(type == (AddressBeanRegeocode).toString()){ return AddressBeanRegeocode.fromJson(json); } if(type == (AddressBeanRegeocodeAddressComponent).toString()){ return AddressBeanRegeocodeAddressComponent.fromJson(json); } if(type == (AddressBeanRegeocodePois).toString()){ return AddressBeanRegeocodePois.fromJson(json); } if(type == (AlipayResultBeanEntity).toString()){ return AlipayResultBeanEntity.fromJson(json); } if(type == (AndroidAppVersionBeanEntity).toString()){ return AndroidAppVersionBeanEntity.fromJson(json); } if(type == (AndroidAppVersionBeanData).toString()){ return AndroidAppVersionBeanData.fromJson(json); } if(type == (AnnualFeeOrderBeanEntity).toString()){ return AnnualFeeOrderBeanEntity.fromJson(json); } if(type == (AnnualFeeOrderBeanData).toString()){ return AnnualFeeOrderBeanData.fromJson(json); } if(type == (AppStoreReviewBeanEntity).toString()){ return AppStoreReviewBeanEntity.fromJson(json); } if(type == (ApplyForRedPacketBeanEntity).toString()){ return ApplyForRedPacketBeanEntity.fromJson(json); } if(type == (ApplyForRedPacketBeanData).toString()){ return ApplyForRedPacketBeanData.fromJson(json); } if(type == (CommodityCategoryBeanEntity).toString()){ return CommodityCategoryBeanEntity.fromJson(json); } if(type == (CommodityCategoryBeanData).toString()){ return CommodityCategoryBeanData.fromJson(json); } if(type == (ComplainBeanEntity).toString()){ return ComplainBeanEntity.fromJson(json); } if(type == (ComplainBeanData).toString()){ return ComplainBeanData.fromJson(json); } if(type == (ComplainBeanDataData).toString()){ return ComplainBeanDataData.fromJson(json); } if(type == (CouponBeanEntity).toString()){ return CouponBeanEntity.fromJson(json); } if(type == (CouponBeanData).toString()){ return CouponBeanData.fromJson(json); } if(type == (CouponBeanDataData).toString()){ return CouponBeanDataData.fromJson(json); } if(type == (DBMessageBeanEntity).toString()){ return DBMessageBeanEntity.fromJson(json); } if(type == (FixedPriceBeanEntity).toString()){ return FixedPriceBeanEntity.fromJson(json); } if(type == (FixedPriceBeanData).toString()){ return FixedPriceBeanData.fromJson(json); } if(type == (FlowBeanEntity).toString()){ return FlowBeanEntity.fromJson(json); } if(type == (FlowBeanData).toString()){ return FlowBeanData.fromJson(json); } if(type == (FlowBeanDataData).toString()){ return FlowBeanDataData.fromJson(json); } if(type == (FlowBeanDataDataRecords).toString()){ return FlowBeanDataDataRecords.fromJson(json); } if(type == (GoodsBeanEntity).toString()){ return GoodsBeanEntity.fromJson(json); } if(type == (GoodsBeanData).toString()){ return GoodsBeanData.fromJson(json); } if(type == (GoodsBeanDataData).toString()){ return GoodsBeanDataData.fromJson(json); } if(type == (GrabARedEnvelopeBeanEntity).toString()){ return GrabARedEnvelopeBeanEntity.fromJson(json); } if(type == (GrabARedEnvelopeBeanData).toString()){ return GrabARedEnvelopeBeanData.fromJson(json); } if(type == (HomeCarouselBeanEntity).toString()){ return HomeCarouselBeanEntity.fromJson(json); } if(type == (HomeCarouselBeanData).toString()){ return HomeCarouselBeanData.fromJson(json); } if(type == (LoginInformationBeanEntity).toString()){ return LoginInformationBeanEntity.fromJson(json); } if(type == (LoginInformationBeanData).toString()){ return LoginInformationBeanData.fromJson(json); } if(type == (LoginInformationBeanDataExtra).toString()){ return LoginInformationBeanDataExtra.fromJson(json); } if(type == (MessageBeanEntity).toString()){ return MessageBeanEntity.fromJson(json); } if(type == (MessageBeanContent).toString()){ return MessageBeanContent.fromJson(json); } if(type == (MsgBeanDataEntity).toString()){ return MsgBeanDataEntity.fromJson(json); } if(type == (MyCouponBeanEntity).toString()){ return MyCouponBeanEntity.fromJson(json); } if(type == (MyCouponBeanData).toString()){ return MyCouponBeanData.fromJson(json); } if(type == (MyCouponBeanDataData).toString()){ return MyCouponBeanDataData.fromJson(json); } if(type == (MyShopBeanEntity).toString()){ return MyShopBeanEntity.fromJson(json); } if(type == (MyShopBeanData).toString()){ return MyShopBeanData.fromJson(json); } if(type == (MyShopBeanDataData).toString()){ return MyShopBeanDataData.fromJson(json); } if(type == (NewMsgBeanEntity).toString()){ return NewMsgBeanEntity.fromJson(json); } if(type == (NewMsgBeanContent).toString()){ return NewMsgBeanContent.fromJson(json); } if(type == (NewMsgBeanContentSender).toString()){ return NewMsgBeanContentSender.fromJson(json); } if(type == (NewMsgBeanContentReceiver).toString()){ return NewMsgBeanContentReceiver.fromJson(json); } if(type == (NewMsgBeanContentShop).toString()){ return NewMsgBeanContentShop.fromJson(json); } if(type == (NewMsgBeanContentOrder).toString()){ return NewMsgBeanContentOrder.fromJson(json); } if(type == (NewMsgBeanContentGoods).toString()){ return NewMsgBeanContentGoods.fromJson(json); } if(type == (NewOrderBeanEntity).toString()){ return NewOrderBeanEntity.fromJson(json); } if(type == (NewOrderBeanContent).toString()){ return NewOrderBeanContent.fromJson(json); } if(type == (NsqTypeBeanEntity).toString()){ return NsqTypeBeanEntity.fromJson(json); } if(type == (OfflinePaymentBeanEntity).toString()){ return OfflinePaymentBeanEntity.fromJson(json); } if(type == (PayByAlipayBeanEntity).toString()){ return PayByAlipayBeanEntity.fromJson(json); } if(type == (PayByWeChatBeanEntity).toString()){ return PayByWeChatBeanEntity.fromJson(json); } if(type == (PayByWeChatBeanData).toString()){ return PayByWeChatBeanData.fromJson(json); } if(type == (PayWayBeanEntity).toString()){ return PayWayBeanEntity.fromJson(json); } if(type == (PayWayBeanData).toString()){ return PayWayBeanData.fromJson(json); } if(type == (PoiBeanEntity).toString()){ return PoiBeanEntity.fromJson(json); } if(type == (PoiBeanPois).toString()){ return PoiBeanPois.fromJson(json); } if(type == (RedEnvelopeWallBeanEntity).toString()){ return RedEnvelopeWallBeanEntity.fromJson(json); } if(type == (RedEnvelopeWallBeanData).toString()){ return RedEnvelopeWallBeanData.fromJson(json); } if(type == (RedEnvelopeWallBeanDataData).toString()){ return RedEnvelopeWallBeanDataData.fromJson(json); } if(type == (SaveImageBeanEntity).toString()){ return SaveImageBeanEntity.fromJson(json); } if(type == (SaveOrderBeanEntity).toString()){ return SaveOrderBeanEntity.fromJson(json); } if(type == (SaveQrCodeBeanEntity).toString()){ return SaveQrCodeBeanEntity.fromJson(json); } if(type == (SendMessageBeanEntity).toString()){ return SendMessageBeanEntity.fromJson(json); } if(type == (ShopUserUpBeanEntity).toString()){ return ShopUserUpBeanEntity.fromJson(json); } if(type == (SmartOrderBeanEntity).toString()){ return SmartOrderBeanEntity.fromJson(json); } if(type == (SmartOrderBeanData).toString()){ return SmartOrderBeanData.fromJson(json); } if(type == (SmartOrderBeanDataData).toString()){ return SmartOrderBeanDataData.fromJson(json); } if(type == (StoreBeanEntity).toString()){ return StoreBeanEntity.fromJson(json); } if(type == (StoreBeanData).toString()){ return StoreBeanData.fromJson(json); } if(type == (StoreBeanDataData).toString()){ return StoreBeanDataData.fromJson(json); } if(type == (SystemInformationBeanEntity).toString()){ return SystemInformationBeanEntity.fromJson(json); } if(type == (SystemInformationBeanContent).toString()){ return SystemInformationBeanContent.fromJson(json); } if(type == (SystemInformationBeanListEntity).toString()){ return SystemInformationBeanListEntity.fromJson(json); } if(type == (SystemInformationBeanListContent).toString()){ return SystemInformationBeanListContent.fromJson(json); } if(type == (TableBeanEntity).toString()){ return TableBeanEntity.fromJson(json); } if(type == (TemplateBeanEntity).toString()){ return TemplateBeanEntity.fromJson(json); } if(type == (TemplateBeanData).toString()){ return TemplateBeanData.fromJson(json); } if(type == (TouristGoodsBeanEntity).toString()){ return TouristGoodsBeanEntity.fromJson(json); } if(type == (TouristGoodsBeanData).toString()){ return TouristGoodsBeanData.fromJson(json); } if(type == (TouristPublicShopBeanEntity).toString()){ return TouristPublicShopBeanEntity.fromJson(json); } if(type == (TouristPublicShopBeanData).toString()){ return TouristPublicShopBeanData.fromJson(json); } if(type == (UploadImageBeanEntity).toString()){ return UploadImageBeanEntity.fromJson(json); } if(type == (UploadImageBeanData).toString()){ return UploadImageBeanData.fromJson(json); } if(type == (UseXRayFlowBeanEntity).toString()){ return UseXRayFlowBeanEntity.fromJson(json); } if(type == (UseXRayFlowBeanData).toString()){ return UseXRayFlowBeanData.fromJson(json); } if(type == (UseXRayFlowBeanDataFlows).toString()){ return UseXRayFlowBeanDataFlows.fromJson(json); } if(type == (UserBalanceEntity).toString()){ return UserBalanceEntity.fromJson(json); } if(type == (UserBeanEntity).toString()){ return UserBeanEntity.fromJson(json); } if(type == (UserBeanData).toString()){ return UserBeanData.fromJson(json); } if(type == (UserBeanDataData).toString()){ return UserBeanDataData.fromJson(json); } if(type == (UserVpBeanEntity).toString()){ return UserVpBeanEntity.fromJson(json); } if(type == (UserVpBeanData).toString()){ return UserVpBeanData.fromJson(json); } if(type == (UserVpBeanDataData).toString()){ return UserVpBeanDataData.fromJson(json); } if(type == (VpPricingBeanEntity).toString()){ return VpPricingBeanEntity.fromJson(json); } if(type == (VpPricingBeanData).toString()){ return VpPricingBeanData.fromJson(json); } if(type == (VpPricingBeanDataData).toString()){ return VpPricingBeanDataData.fromJson(json); } if(type == (WXBeanEntity).toString()){ return WXBeanEntity.fromJson(json); } if(type == (WithdrawPricingBeanEntity).toString()){ return WithdrawPricingBeanEntity.fromJson(json); } if(type == (WithdrawPricingBeanData).toString()){ return WithdrawPricingBeanData.fromJson(json); } if(type == (WithdrawPricingBeanDataData).toString()){ return WithdrawPricingBeanDataData.fromJson(json); } return null; } //list is returned by type static M _getListChildType(List data) { if([] is M){ return data.map((e) => AccessBeanEntity.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => ActivityBeanEntity.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => ActivityBeanData.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => AdBeanEntity.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => AdBeanData.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => AdBeanDataData.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => AdPricingBeanEntity.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => AdPricingBeanData.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => AddressBeanEntity.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => AddressBeanRegeocode.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => AddressBeanRegeocodeAddressComponent.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => AddressBeanRegeocodePois.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => AlipayResultBeanEntity.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => AndroidAppVersionBeanEntity.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => AndroidAppVersionBeanData.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => AnnualFeeOrderBeanEntity.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => AnnualFeeOrderBeanData.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => AppStoreReviewBeanEntity.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => ApplyForRedPacketBeanEntity.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => ApplyForRedPacketBeanData.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => CommodityCategoryBeanEntity.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => CommodityCategoryBeanData.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => ComplainBeanEntity.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => ComplainBeanData.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => ComplainBeanDataData.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => CouponBeanEntity.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => CouponBeanData.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => CouponBeanDataData.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => DBMessageBeanEntity.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => FixedPriceBeanEntity.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => FixedPriceBeanData.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => FlowBeanEntity.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => FlowBeanData.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => FlowBeanDataData.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => FlowBeanDataDataRecords.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => GoodsBeanEntity.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => GoodsBeanData.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => GoodsBeanDataData.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => GrabARedEnvelopeBeanEntity.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => GrabARedEnvelopeBeanData.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => HomeCarouselBeanEntity.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => HomeCarouselBeanData.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => LoginInformationBeanEntity.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => LoginInformationBeanData.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => LoginInformationBeanDataExtra.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => MessageBeanEntity.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => MessageBeanContent.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => MsgBeanDataEntity.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => MyCouponBeanEntity.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => MyCouponBeanData.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => MyCouponBeanDataData.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => MyShopBeanEntity.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => MyShopBeanData.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => MyShopBeanDataData.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => NewMsgBeanEntity.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => NewMsgBeanContent.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => NewMsgBeanContentSender.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => NewMsgBeanContentReceiver.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => NewMsgBeanContentShop.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => NewMsgBeanContentOrder.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => NewMsgBeanContentGoods.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => NewOrderBeanEntity.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => NewOrderBeanContent.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => NsqTypeBeanEntity.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => OfflinePaymentBeanEntity.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => PayByAlipayBeanEntity.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => PayByWeChatBeanEntity.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => PayByWeChatBeanData.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => PayWayBeanEntity.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => PayWayBeanData.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => PoiBeanEntity.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => PoiBeanPois.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => RedEnvelopeWallBeanEntity.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => RedEnvelopeWallBeanData.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => RedEnvelopeWallBeanDataData.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => SaveImageBeanEntity.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => SaveOrderBeanEntity.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => SaveQrCodeBeanEntity.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => SendMessageBeanEntity.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => ShopUserUpBeanEntity.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => SmartOrderBeanEntity.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => SmartOrderBeanData.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => SmartOrderBeanDataData.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => StoreBeanEntity.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => StoreBeanData.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => StoreBeanDataData.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => SystemInformationBeanEntity.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => SystemInformationBeanContent.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => SystemInformationBeanListEntity.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => SystemInformationBeanListContent.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => TableBeanEntity.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => TemplateBeanEntity.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => TemplateBeanData.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => TouristGoodsBeanEntity.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => TouristGoodsBeanData.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => TouristPublicShopBeanEntity.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => TouristPublicShopBeanData.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => UploadImageBeanEntity.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => UploadImageBeanData.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => UseXRayFlowBeanEntity.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => UseXRayFlowBeanData.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => UseXRayFlowBeanDataFlows.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => UserBalanceEntity.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => UserBeanEntity.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => UserBeanData.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => UserBeanDataData.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => UserVpBeanEntity.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => UserVpBeanData.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => UserVpBeanDataData.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => VpPricingBeanEntity.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => VpPricingBeanData.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => VpPricingBeanDataData.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => WXBeanEntity.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => WithdrawPricingBeanEntity.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => WithdrawPricingBeanData.fromJson(e)).toList() as M; } if([] is M){ return data.map((e) => WithdrawPricingBeanDataData.fromJson(e)).toList() as M; } throw Exception("not found"); } static M fromJsonAsT(json) { if (json is List) { return _getListChildType(json); } else { return _fromJsonSingle(json) as M; } } }