import 'package:bbyyy/generated/json/base/json_convert_content.dart'; import 'package:bbyyy/beans/new_order_bean_entity.dart'; NewOrderBeanEntity $NewOrderBeanEntityFromJson(Map json) { NewOrderBeanEntity newOrderBeanEntity = NewOrderBeanEntity(); var type = jsonConvert.convert(json['type']); if (type != null) { newOrderBeanEntity.type = type; } var content = jsonConvert.convert(json['content']); if (content != null) { newOrderBeanEntity.content = content; } return newOrderBeanEntity; } Map $NewOrderBeanEntityToJson(NewOrderBeanEntity entity) { final Map data = {}; data['type'] = entity.type; data['content'] = entity.content.toJson(); return data; } NewOrderBeanContent $NewOrderBeanContentFromJson(Map json) { NewOrderBeanContent newOrderBeanContent = NewOrderBeanContent(); var uID = jsonConvert.convert(json['UID']); if (uID != null) { newOrderBeanContent.uID = uID; } var state = jsonConvert.convert(json['State']); if (state != null) { newOrderBeanContent.state = state; } var sellerID = jsonConvert.convert(json['SellerID']); if (sellerID != null) { newOrderBeanContent.sellerID = sellerID; } var createTime = jsonConvert.convert(json['CreateTime']); if (createTime != null) { newOrderBeanContent.createTime = createTime; } var shopUID = jsonConvert.convert(json['ShopUID']); if (shopUID != null) { newOrderBeanContent.shopUID = shopUID; } var amount = jsonConvert.convert(json['Amount']); if (amount != null) { newOrderBeanContent.amount = amount; } var hash = jsonConvert.convert(json['Hash']); if (hash != null) { newOrderBeanContent.hash = hash; } var buyerName = jsonConvert.convert(json['BuyerName']); if (buyerName != null) { newOrderBeanContent.buyerName = buyerName; } var shopPic = jsonConvert.convert(json['ShopPic']); if (shopPic != null) { newOrderBeanContent.shopPic = shopPic; } var shopID = jsonConvert.convert(json['ShopID']); if (shopID != null) { newOrderBeanContent.shopID = shopID; } var sellerName = jsonConvert.convert(json['SellerName']); if (sellerName != null) { newOrderBeanContent.sellerName = sellerName; } var sellerPic = jsonConvert.convert(json['SellerPic']); if (sellerPic != null) { newOrderBeanContent.sellerPic = sellerPic; } var buyerPic = jsonConvert.convert(json['BuyerPic']); if (buyerPic != null) { newOrderBeanContent.buyerPic = buyerPic; } var sellerUID = jsonConvert.convert(json['SellerUID']); if (sellerUID != null) { newOrderBeanContent.sellerUID = sellerUID; } var buyerUID = jsonConvert.convert(json['BuyerUID']); if (buyerUID != null) { newOrderBeanContent.buyerUID = buyerUID; } var shopName = jsonConvert.convert(json['ShopName']); if (shopName != null) { newOrderBeanContent.shopName = shopName; } var iD = jsonConvert.convert(json['ID']); if (iD != null) { newOrderBeanContent.iD = iD; } return newOrderBeanContent; } Map $NewOrderBeanContentToJson(NewOrderBeanContent entity) { final Map data = {}; data['UID'] = entity.uID; data['State'] = entity.state; data['SellerID'] = entity.sellerID; data['CreateTime'] = entity.createTime; data['ShopUID'] = entity.shopUID; data['Amount'] = entity.amount; data['Hash'] = entity.hash; data['BuyerName'] = entity.buyerName; data['ShopPic'] = entity.shopPic; data['ShopID'] = entity.shopID; data['SellerName'] = entity.sellerName; data['SellerPic'] = entity.sellerPic; data['BuyerPic'] = entity.buyerPic; data['SellerUID'] = entity.sellerUID; data['BuyerUID'] = entity.buyerUID; data['ShopName'] = entity.shopName; data['ID'] = entity.iD; return data; }