Procházet zdrojové kódy

店铺二维码收款

huxiaoqiang před 4 roky
rodič
revize
3827d11f6c

+ 1 - 0
android/app/src/main/AndroidManifest.xml

@@ -15,6 +15,7 @@
     <application
         android:networkSecurityConfig="@xml/network_security_config"
         android:name="io.flutter.app.FlutterApplication"
+        android:requestLegacyExternalStorage="true"
         android:label="梆梆鱼"
         android:icon="@mipmap/app_logo">
         <activity

+ 7 - 0
lib/beans/save_image_bean_entity.dart

@@ -0,0 +1,7 @@
+import 'package:bbyyy/generated/json/base/json_convert_content.dart';
+
+class SaveImageBeanEntity with JsonConvert<SaveImageBeanEntity> {
+	String filePath;
+	dynamic errorMessage;
+	bool isSuccess;
+}

+ 437 - 217
lib/generated/json/base/json_convert_content.dart

@@ -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;
+		}
+	}
 }

+ 22 - 0
lib/generated/json/save_image_bean_entity_helper.dart

@@ -0,0 +1,22 @@
+import 'package:bbyyy/beans/save_image_bean_entity.dart';
+
+saveImageBeanEntityFromJson(SaveImageBeanEntity data, Map<String, dynamic> json) {
+	if (json['filePath'] != null) {
+		data.filePath = json['filePath'].toString();
+	}
+	if (json['errorMessage'] != null) {
+		data.errorMessage = json['errorMessage'];
+	}
+	if (json['isSuccess'] != null) {
+		data.isSuccess = json['isSuccess'];
+	}
+	return data;
+}
+
+Map<String, dynamic> saveImageBeanEntityToJson(SaveImageBeanEntity entity) {
+	final Map<String, dynamic> data = new Map<String, dynamic>();
+	data['filePath'] = entity.filePath;
+	data['errorMessage'] = entity.errorMessage;
+	data['isSuccess'] = entity.isSuccess;
+	return data;
+}

+ 10 - 10
lib/generated/json/template_bean_entity_helper.dart

@@ -26,15 +26,15 @@ templateBeanDataFromJson(TemplateBeanData data, Map<String, dynamic> json) {
 	if (json['template'] != null) {
 		data.template = json['template'].toString();
 	}
-	if (json['owner_uid'] != null) {
-		data.ownerUid = json['owner_uid'] is String
-				? int.tryParse(json['owner_uid'])
-				: json['owner_uid'].toInt();
+	if (json['ownerUid'] != null) {
+		data.ownerUid = json['ownerUid'] is String
+				? int.tryParse(json['ownerUid'])
+				: json['ownerUid'].toInt();
 	}
-	if (json['shop_uid'] != null) {
-		data.shopUid = json['shop_uid'] is String
-				? int.tryParse(json['shop_uid'])
-				: json['shop_uid'].toInt();
+	if (json['shopUid'] != null) {
+		data.shopUid = json['shopUid'] is String
+				? int.tryParse(json['shopUid'])
+				: json['shopUid'].toInt();
 	}
 	return data;
 }
@@ -43,7 +43,7 @@ Map<String, dynamic> templateBeanDataToJson(TemplateBeanData entity) {
 	final Map<String, dynamic> data = new Map<String, dynamic>();
 	data['id'] = entity.id;
 	data['template'] = entity.template;
-	data['owner_uid'] = entity.ownerUid;
-	data['shop_uid'] = entity.shopUid;
+	data['ownerUid'] = entity.ownerUid;
+	data['shopUid'] = entity.shopUid;
 	return data;
 }

+ 174 - 4
lib/paegs/gang_page/qr_code_for_store_payment_page/qr_code_for_store_payment_page.dart

@@ -1,18 +1,188 @@
+import 'dart:convert';
+import 'dart:math';
+import 'dart:typed_data';
+import 'dart:ui';
+
 import 'package:bbyyy/beans/my_shop_bean_entity.dart';
+import 'package:bbyyy/beans/save_image_bean_entity.dart';
+import 'package:bbyyy/my_tools/my_colors.dart';
+import 'package:bbyyy/my_tools/my_tools.dart';
 import 'package:flutter/material.dart';
+import 'package:flutter/rendering.dart';
+import 'package:flutter_svg/svg.dart';
+import 'package:image_gallery_saver/image_gallery_saver.dart';
+import 'package:qr_flutter/qr_flutter.dart';
 
 class QRCodeForStorePaymentPage extends StatefulWidget {
   MyShopBeanDataData data;
-  QRCodeForStorePaymentPage(this.data);
 
+  QRCodeForStorePaymentPage(this.data);
 
   @override
-  _QRCodeForStorePaymentPageState createState() => _QRCodeForStorePaymentPageState();
+  _QRCodeForStorePaymentPageState createState() =>
+      _QRCodeForStorePaymentPageState();
 }
 
 class _QRCodeForStorePaymentPageState extends State<QRCodeForStorePaymentPage> {
+  GlobalKey rootWidgetKey = GlobalKey();
+
   @override
   Widget build(BuildContext context) {
-    return Scaffold();
+    return Scaffold(
+      body: Stack(
+        children: [
+          RepaintBoundary(
+            key: rootWidgetKey,
+            child: Container(
+              child: Column(children: [
+                Container(
+                  child: Image.asset(
+                    'images/logo.png',
+                    height: 86,
+                  ),
+                ),
+                Container(height: 80,),
+                Container(
+                  height: 240,
+                  width: 240,
+                  padding: EdgeInsets.all(10),
+                  decoration: BoxDecoration(
+                      borderRadius: BorderRadius.circular(9.6),
+                      color: Colors.white),
+                  child: QrImage(
+                    data:
+                    'http://www.banghuo.net/bby/pay/pay.html?shop_uid=${widget.data.shopUid}',
+                    gapless: false,
+                    version: QrVersions.auto,
+                    size: 216.0,
+                  ),
+                ),
+              ],mainAxisAlignment: MainAxisAlignment.center,),
+              decoration: BoxDecoration(
+                gradient: LinearGradient(
+                    colors: MyColors.lg2,
+                    begin: Alignment.topCenter,
+                    end: Alignment.bottomCenter),
+                // color: Colors.yellow
+              ),
+              height: MediaQuery.of(context).size.width * 1.5,
+              width: MediaQuery.of(context).size.width,
+            ),
+          ),
+          Container(
+            decoration: BoxDecoration(
+              gradient: LinearGradient(
+                  colors: MyColors.lg2,
+                  begin: Alignment.topCenter,
+                  end: Alignment.bottomCenter),
+            ),
+            child: Column(
+              children: [
+                Column(
+                  children: [
+                    SafeArea(
+                      bottom: false,
+                      child: Container(
+                        height: 45,
+                        width: double.infinity,
+                        child: Stack(
+                          children: [
+                            Positioned(
+                              left: 0,
+                              child: GestureDetector(
+                                onTap: () {
+                                  Navigator.pop(context);
+                                },
+                                behavior: HitTestBehavior.translucent,
+                                child: Transform.rotate(
+                                  angle: pi,
+                                  child: Padding(
+                                    padding: EdgeInsets.only(
+                                        left: 16, right: 16, top: 8, bottom: 8),
+                                    child: SvgPicture.asset(
+                                      'images/svg/箭头.svg',
+                                      color: Colors.white,
+                                      height: 14,
+                                    ),
+                                  ),
+                                ),
+                              ),
+                            ),
+                          ],
+                          alignment: Alignment.center,
+                        ),
+                      ),
+                    ),
+                    Column(
+                      children: [
+                        Container(
+                          child: Image.asset(
+                            'images/logo.png',
+                            height: 86,
+                          ),
+                          padding: EdgeInsets.only(top: 50, bottom: 50),
+                        ),
+                        Container(
+                          height: 240,
+                          width: 240,
+                          padding:EdgeInsets.all(10),
+                          decoration: BoxDecoration(
+                              borderRadius: BorderRadius.circular(9.6),
+                              color: Colors.white),
+                          child: QrImage(
+                            data:
+                                'http://www.banghuo.net/bby/pay/pay.html?shop_uid=${widget.data.shopUid}',
+                            gapless: false,
+                            version: QrVersions.auto,
+                            size:  216,
+                          ),
+                        ),
+                      ],
+                    ),
+                  ],
+                ),
+                GestureDetector(
+                  child: SafeArea(
+                    top: false,
+                    child: Container(
+                      margin: EdgeInsets.only(bottom: 10),
+                      child: Text(
+                        '保存图片到手机',
+                        style: TextStyle(color: Colors.white, fontSize: 14),
+                      ),
+                      padding: EdgeInsets.all(12),
+                    ),
+                  ),
+                  onTap: () {
+                    _capturePng();
+                  },
+                ),
+              ],
+              mainAxisAlignment: MainAxisAlignment.spaceBetween,
+            ),
+          ),
+        ],
+      ),
+    );
   }
-}
+
+  Future<Uint8List> _capturePng() async {
+    try {
+      RenderRepaintBoundary boundary =
+          rootWidgetKey.currentContext.findRenderObject();
+      var image = await boundary.toImage(pixelRatio: 3.0);
+      ByteData byteData = await image.toByteData(format: ImageByteFormat.png);
+      Uint8List pngBytes = byteData.buffer.asUint8List();
+      final result = await ImageGallerySaver.saveImage(pngBytes,
+          name: 'bby_${DateTime.now()}');
+      print('======================|\n$result\n|===========================');
+      SaveImageBeanEntity entity =
+          SaveImageBeanEntity().fromJson(json.decode(result));
+      showToast(entity.isSuccess ? '保存成功' : '保存失败');
+      return pngBytes;
+    } catch (e) {
+      print(e);
+    }
+    return null;
+  }
+}

+ 7 - 0
pubspec.lock

@@ -357,6 +357,13 @@ packages:
       url: "https://pub.flutter-io.cn"
     source: hosted
     version: "1.4.0"
+  image_gallery_saver:
+    dependency: "direct main"
+    description:
+      name: image_gallery_saver
+      url: "https://pub.flutter-io.cn"
+    source: hosted
+    version: "1.6.9"
   image_picker:
     dependency: "direct main"
     description:

+ 1 - 0
pubspec.yaml

@@ -68,6 +68,7 @@ dependencies:
   scan: ^1.4.3
   address_picker: ^0.0.1
   fluwx: ^3.4.2
+  image_gallery_saver: ^1.6.9
 
 dev_dependencies:
   flutter_test: