w-R
3 years ago
10 changed files with 1661 additions and 47 deletions
@ -0,0 +1,491 @@
|
||||
import 'package:huixiang/retrofit/data/shoppingCart.dart'; |
||||
|
||||
/// addressId : 0 |
||||
/// isSubscribe : true |
||||
/// isTakeOut : 0 |
||||
/// notes : "" |
||||
/// numberOfPeople : 0 |
||||
/// orderSource : 0 |
||||
/// orderType : 0 |
||||
/// orderTypeId : 0 |
||||
/// parentCode : "" |
||||
/// parentId : 0 |
||||
/// payChannel : 0 |
||||
/// promotionInfoDTO : {"couponId":0,"promotionId":0} |
||||
/// recMobile : "" |
||||
/// shoppingCartSkuItemList : [] |
||||
/// skuItemDTOList : [{"buyNum":0,"couponId":0,"couponName":"","discountPercent":0,"orderId":0,"orderProductId":0,"platterList":[{"deleted":true,"id":0,"productId":0,"required":true,"skuId":0}],"promotionId":0,"promotionName":"","refundNum":0,"skuId":0}] |
||||
/// source : 0 |
||||
/// storeId : 0 |
||||
/// subcribeTime : "" |
||||
/// tableId : 0 |
||||
|
||||
class PlaceOrderFirst { |
||||
PlaceOrderFirst({ |
||||
String addressId, |
||||
bool isSubscribe, |
||||
int isTakeOut, |
||||
String notes, |
||||
String numberOfPeople, |
||||
int orderSource, |
||||
int orderType, |
||||
int orderTypeId, |
||||
String parentCode, |
||||
int parentId, |
||||
int payChannel, |
||||
PlaceOrderFirstPromotionInfoDTO promotionInfoDTO, |
||||
String recMobile, |
||||
List<ShoppingCartSkuItemListBean> shoppingCartSkuItemList, |
||||
List<SkuItemDTOList> skuItemDTOList, |
||||
int source, |
||||
String storeId, |
||||
String subcribeTime, |
||||
int tableId,}){ |
||||
_addressId = addressId; |
||||
_isSubscribe = isSubscribe; |
||||
_isTakeOut = isTakeOut; |
||||
_notes = notes; |
||||
_numberOfPeople = numberOfPeople; |
||||
_orderSource = orderSource; |
||||
_orderType = orderType; |
||||
_orderTypeId = orderTypeId; |
||||
_parentCode = parentCode; |
||||
_parentId = parentId; |
||||
_payChannel = payChannel; |
||||
_promotionInfoDTO = promotionInfoDTO; |
||||
_recMobile = recMobile; |
||||
_skuItemDTOList = skuItemDTOList; |
||||
_shoppingCartSkuItemList = shoppingCartSkuItemList; |
||||
_source = source; |
||||
_storeId = storeId; |
||||
_subcribeTime = subcribeTime; |
||||
_tableId = tableId; |
||||
} |
||||
|
||||
PlaceOrderFirst.fromJson(dynamic json) { |
||||
_addressId = json['addressId']; |
||||
_isSubscribe = json['isSubscribe']; |
||||
_isTakeOut = json['isTakeOut']; |
||||
_notes = json['notes']; |
||||
_numberOfPeople = json['numberOfPeople']; |
||||
_orderSource = json['orderSource']; |
||||
_orderType = json['orderType']; |
||||
_orderTypeId = json['orderTypeId']; |
||||
_parentCode = json['parentCode']; |
||||
_parentId = json['parentId']; |
||||
_payChannel = json['payChannel']; |
||||
_promotionInfoDTO = json['promotionInfoDTO'] != null ? PlaceOrderFirstPromotionInfoDTO.fromJson(json['promotionInfoDTO']) : null; |
||||
_recMobile = json['recMobile']; |
||||
if (json['skuItemDTOList'] != null) { |
||||
_skuItemDTOList = []; |
||||
json['skuItemDTOList'].forEach((v) { |
||||
_skuItemDTOList.add(SkuItemDTOList.fromJson(v)); |
||||
}); |
||||
} |
||||
if (json['shoppingCartSkuItemList'] != null) { |
||||
_shoppingCartSkuItemList = []; |
||||
json['shoppingCartSkuItemList'].forEach((v) { |
||||
_shoppingCartSkuItemList.add(ShoppingCartSkuItemListBean.fromJson(v)); |
||||
}); |
||||
} |
||||
_source = json['source']; |
||||
_storeId = json['storeId']; |
||||
_subcribeTime = json['subcribeTime']; |
||||
_tableId = json['tableId']; |
||||
} |
||||
String _addressId; |
||||
bool _isSubscribe; |
||||
int _isTakeOut; |
||||
String _notes; |
||||
String _numberOfPeople; |
||||
int _orderSource; |
||||
int _orderType; |
||||
int _orderTypeId; |
||||
String _parentCode; |
||||
int _parentId; |
||||
int _payChannel; |
||||
PlaceOrderFirstPromotionInfoDTO _promotionInfoDTO; |
||||
String _recMobile; |
||||
List<SkuItemDTOList> _skuItemDTOList; |
||||
List<ShoppingCartSkuItemListBean> _shoppingCartSkuItemList; |
||||
int _source; |
||||
String _storeId; |
||||
String _subcribeTime; |
||||
int _tableId; |
||||
|
||||
set addressId(String value) { |
||||
_addressId = value; |
||||
} |
||||
|
||||
String get addressId => _addressId; |
||||
bool get isSubscribe => _isSubscribe; |
||||
int get isTakeOut => _isTakeOut; |
||||
String get notes => _notes; |
||||
String get numberOfPeople => _numberOfPeople; |
||||
int get orderSource => _orderSource; |
||||
int get orderType => _orderType; |
||||
int get orderTypeId => _orderTypeId; |
||||
String get parentCode => _parentCode; |
||||
int get parentId => _parentId; |
||||
int get payChannel => _payChannel; |
||||
PlaceOrderFirstPromotionInfoDTO get promotionInfoDTO => _promotionInfoDTO; |
||||
String get recMobile => _recMobile; |
||||
List<SkuItemDTOList> get skuItemDTOList => _skuItemDTOList; |
||||
List<ShoppingCartSkuItemListBean> get shoppingCartSkuItemList => _shoppingCartSkuItemList; |
||||
int get source => _source; |
||||
String get storeId => _storeId; |
||||
String get subcribeTime => _subcribeTime; |
||||
int get tableId => _tableId; |
||||
|
||||
Map<String, dynamic> toJson() { |
||||
final map = <String, dynamic>{}; |
||||
map['addressId'] = _addressId; |
||||
map['isSubscribe'] = _isSubscribe; |
||||
map['isTakeOut'] = _isTakeOut; |
||||
map['notes'] = _notes; |
||||
map['numberOfPeople'] = _numberOfPeople; |
||||
map['orderSource'] = _orderSource; |
||||
map['orderType'] = _orderType; |
||||
map['orderTypeId'] = _orderTypeId; |
||||
map['parentCode'] = _parentCode; |
||||
map['parentId'] = _parentId; |
||||
map['payChannel'] = _payChannel; |
||||
if (_promotionInfoDTO != null) { |
||||
map['promotionInfoDTO'] = _promotionInfoDTO.toJson(); |
||||
} |
||||
map['recMobile'] = _recMobile; |
||||
if (_skuItemDTOList != null) { |
||||
map['skuItemDTOList'] = _skuItemDTOList.map((v) => v.toJson()).toList(); |
||||
} |
||||
if (_shoppingCartSkuItemList != null) { |
||||
map['shoppingCartSkuItemList'] = _shoppingCartSkuItemList.map((v) => v.toJson()).toList(); |
||||
} |
||||
map['source'] = _source; |
||||
map['storeId'] = _storeId; |
||||
map['subcribeTime'] = _subcribeTime; |
||||
map['tableId'] = _tableId; |
||||
return map; |
||||
} |
||||
|
||||
set isSubscribe(bool value) { |
||||
_isSubscribe = value; |
||||
} |
||||
|
||||
set isTakeOut(int value) { |
||||
_isTakeOut = value; |
||||
} |
||||
|
||||
set notes(String value) { |
||||
_notes = value; |
||||
} |
||||
|
||||
set numberOfPeople(String value) { |
||||
_numberOfPeople = value; |
||||
} |
||||
|
||||
set orderSource(int value) { |
||||
_orderSource = value; |
||||
} |
||||
|
||||
set orderType(int value) { |
||||
_orderType = value; |
||||
} |
||||
|
||||
set orderTypeId(int value) { |
||||
_orderTypeId = value; |
||||
} |
||||
|
||||
set parentCode(String value) { |
||||
_parentCode = value; |
||||
} |
||||
|
||||
set parentId(int value) { |
||||
_parentId = value; |
||||
} |
||||
|
||||
set payChannel(int value) { |
||||
_payChannel = value; |
||||
} |
||||
|
||||
set promotionInfoDTO(PlaceOrderFirstPromotionInfoDTO value) { |
||||
_promotionInfoDTO = value; |
||||
} |
||||
|
||||
set recMobile(String value) { |
||||
_recMobile = value; |
||||
} |
||||
|
||||
set skuItemDTOList(List<SkuItemDTOList> value) { |
||||
_skuItemDTOList = value; |
||||
} |
||||
|
||||
set shoppingCartSkuItemList(List<ShoppingCartSkuItemListBean> value) { |
||||
_shoppingCartSkuItemList = value; |
||||
} |
||||
|
||||
set source(int value) { |
||||
_source = value; |
||||
} |
||||
|
||||
set storeId(String value) { |
||||
_storeId = value; |
||||
} |
||||
|
||||
set subcribeTime(String value) { |
||||
_subcribeTime = value; |
||||
} |
||||
|
||||
set tableId(int value) { |
||||
_tableId = value; |
||||
} |
||||
} |
||||
|
||||
/// buyNum : 0 |
||||
/// couponId : 0 |
||||
/// couponName : "" |
||||
/// discountPercent : 0 |
||||
/// orderId : 0 |
||||
/// orderProductId : 0 |
||||
/// platterList : [{"deleted":true,"id":0,"productId":0,"required":true,"skuId":0}] |
||||
/// promotionId : 0 |
||||
/// promotionName : "" |
||||
/// refundNum : 0 |
||||
/// skuId : 0 |
||||
|
||||
class SkuItemDTOList { |
||||
SkuItemDTOList({ |
||||
int buyNum, |
||||
int couponId, |
||||
String couponName, |
||||
int discountPercent, |
||||
int orderId, |
||||
int orderProductId, |
||||
List<PlatterList> platterList, |
||||
int promotionId, |
||||
String promotionName, |
||||
int refundNum, |
||||
String skuId,}){ |
||||
_buyNum = buyNum; |
||||
_couponId = couponId; |
||||
_couponName = couponName; |
||||
_discountPercent = discountPercent; |
||||
_orderId = orderId; |
||||
_orderProductId = orderProductId; |
||||
_platterList = platterList; |
||||
_promotionId = promotionId; |
||||
_promotionName = promotionName; |
||||
_refundNum = refundNum; |
||||
_skuId = skuId; |
||||
} |
||||
|
||||
SkuItemDTOList.fromJson(dynamic json) { |
||||
_buyNum = json['buyNum']; |
||||
_couponId = json['couponId']; |
||||
_couponName = json['couponName']; |
||||
_discountPercent = json['discountPercent']; |
||||
_orderId = json['orderId']; |
||||
_orderProductId = json['orderProductId']; |
||||
if (json['platterList'] != null) { |
||||
_platterList = []; |
||||
json['platterList'].forEach((v) { |
||||
_platterList.add(PlatterList.fromJson(v)); |
||||
}); |
||||
} |
||||
_promotionId = json['promotionId']; |
||||
_promotionName = json['promotionName']; |
||||
_refundNum = json['refundNum']; |
||||
_skuId = json['skuId']; |
||||
} |
||||
int _buyNum; |
||||
int _couponId; |
||||
String _couponName; |
||||
int _discountPercent; |
||||
int _orderId; |
||||
int _orderProductId; |
||||
List<PlatterList> _platterList; |
||||
int _promotionId; |
||||
String _promotionName; |
||||
int _refundNum; |
||||
String _skuId; |
||||
|
||||
int get buyNum => _buyNum; |
||||
int get couponId => _couponId; |
||||
String get couponName => _couponName; |
||||
int get discountPercent => _discountPercent; |
||||
int get orderId => _orderId; |
||||
int get orderProductId => _orderProductId; |
||||
List<PlatterList> get platterList => _platterList; |
||||
int get promotionId => _promotionId; |
||||
String get promotionName => _promotionName; |
||||
int get refundNum => _refundNum; |
||||
String get skuId => _skuId; |
||||
|
||||
set buyNum(int value) { |
||||
_buyNum = value; |
||||
} |
||||
|
||||
Map<String, dynamic> toJson() { |
||||
final map = <String, dynamic>{}; |
||||
map['buyNum'] = _buyNum; |
||||
map['couponId'] = _couponId; |
||||
map['couponName'] = _couponName; |
||||
map['discountPercent'] = _discountPercent; |
||||
map['orderId'] = _orderId; |
||||
map['orderProductId'] = _orderProductId; |
||||
if (_platterList != null) { |
||||
map['platterList'] = _platterList.map((v) => v.toJson()).toList(); |
||||
} |
||||
map['promotionId'] = _promotionId; |
||||
map['promotionName'] = _promotionName; |
||||
map['refundNum'] = _refundNum; |
||||
map['skuId'] = _skuId; |
||||
return map; |
||||
} |
||||
|
||||
set couponId(int value) { |
||||
_couponId = value; |
||||
} |
||||
|
||||
set couponName(String value) { |
||||
_couponName = value; |
||||
} |
||||
|
||||
set discountPercent(int value) { |
||||
_discountPercent = value; |
||||
} |
||||
|
||||
set orderId(int value) { |
||||
_orderId = value; |
||||
} |
||||
|
||||
set orderProductId(int value) { |
||||
_orderProductId = value; |
||||
} |
||||
|
||||
set platterList(List<PlatterList> value) { |
||||
_platterList = value; |
||||
} |
||||
|
||||
set promotionId(int value) { |
||||
_promotionId = value; |
||||
} |
||||
|
||||
set promotionName(String value) { |
||||
_promotionName = value; |
||||
} |
||||
|
||||
set refundNum(int value) { |
||||
_refundNum = value; |
||||
} |
||||
|
||||
set skuId(String value) { |
||||
_skuId = value; |
||||
} |
||||
} |
||||
|
||||
/// deleted : true |
||||
/// id : 0 |
||||
/// productId : 0 |
||||
/// required : true |
||||
/// skuId : 0 |
||||
|
||||
class PlatterList { |
||||
PlatterList({ |
||||
bool deleted, |
||||
int id, |
||||
String productId, |
||||
bool required, |
||||
String skuId,}){ |
||||
_deleted = deleted; |
||||
_id = id; |
||||
_productId = productId; |
||||
_required = required; |
||||
_skuId = skuId; |
||||
} |
||||
|
||||
PlatterList.fromJson(dynamic json) { |
||||
_deleted = json['deleted']; |
||||
_id = json['id']; |
||||
_productId = json['productId']; |
||||
_required = json['required']; |
||||
_skuId = json['skuId']; |
||||
} |
||||
bool _deleted; |
||||
int _id; |
||||
String _productId; |
||||
bool _required; |
||||
String _skuId; |
||||
|
||||
bool get deleted => _deleted; |
||||
int get id => _id; |
||||
String get productId => _productId; |
||||
bool get required => _required; |
||||
String get skuId => _skuId; |
||||
|
||||
set deleted(bool value) { |
||||
_deleted = value; |
||||
} |
||||
|
||||
Map<String, dynamic> toJson() { |
||||
final map = <String, dynamic>{}; |
||||
map['deleted'] = _deleted; |
||||
map['id'] = _id; |
||||
map['productId'] = _productId; |
||||
map['required'] = _required; |
||||
map['skuId'] = _skuId; |
||||
return map; |
||||
} |
||||
|
||||
set id(int value) { |
||||
_id = value; |
||||
} |
||||
|
||||
set productId(String value) { |
||||
_productId = value; |
||||
} |
||||
|
||||
set required(bool value) { |
||||
_required = value; |
||||
} |
||||
|
||||
set skuId(String value) { |
||||
_skuId = value; |
||||
} |
||||
} |
||||
|
||||
/// couponId : 0 |
||||
/// promotionId : 0 |
||||
|
||||
class PlaceOrderFirstPromotionInfoDTO { |
||||
PlaceOrderFirstPromotionInfoDTO({ |
||||
String couponId, |
||||
String promotionId,}){ |
||||
_couponId = couponId; |
||||
_promotionId = promotionId; |
||||
} |
||||
|
||||
PlaceOrderFirstPromotionInfoDTO.fromJson(dynamic json) { |
||||
_couponId = json['couponId']; |
||||
_promotionId = json['promotionId']; |
||||
} |
||||
String _couponId; |
||||
String _promotionId; |
||||
|
||||
set couponId(String value) { |
||||
_couponId = value; |
||||
} |
||||
|
||||
String get couponId => _couponId; |
||||
String get promotionId => _promotionId; |
||||
|
||||
Map<String, dynamic> toJson() { |
||||
final map = <String, dynamic>{}; |
||||
map['couponId'] = _couponId; |
||||
map['promotionId'] = _promotionId; |
||||
return map; |
||||
} |
||||
|
||||
set promotionId(String value) { |
||||
_promotionId = value; |
||||
} |
||||
} |
@ -0,0 +1,880 @@
|
||||
/// addressId : 0 |
||||
/// buyNum : 0 |
||||
/// id : 0 |
||||
/// is_logistics : true |
||||
/// orderProductVOList : [{"actInfo":{"couponDiscountAmount":0,"couponDiscountRate":0,"couponId":0,"couponType":0,"discountAmount":0,"discountRate":0,"promotionId":0,"promotionType":0},"additionalComment":{"bizType":0,"commentImgs":"","commentImgsFlag":true,"commentStar":0,"commentText":"","descStar":0,"hideFlag":true,"id":0,"isDelete":true,"likeNum":0,"logisticsStar":0,"mid":0,"orderProductId":0,"parentId":0,"productId":0,"sensitiveFlag":true,"serviceStar":0,"storeId":0},"buyNum":0,"canApplyIntervention":0,"comment":{"bizType":0,"commentImgs":"","commentImgsFlag":true,"commentStar":0,"commentText":"","descStar":0,"hideFlag":true,"id":0,"isDelete":true,"likeNum":0,"logisticsStar":0,"mid":0,"orderProductId":0,"parentId":0,"productId":0,"sensitiveFlag":true,"serviceStar":0,"storeId":0},"commentStatus":0,"discountAmount":0,"id":0,"productId":0,"productName":"","returnCode":"","returnStatus":0,"returnType":0,"sellPrice":0,"skuId":0,"skuImg":"","skuNameStr":""}] |
||||
/// payChannel : 0 |
||||
/// promotionInfoDTO : {"couponId":0,"promotionId":0} |
||||
|
||||
class SettlementBean { |
||||
SettlementBean({ |
||||
int addressId, |
||||
int buyNum, |
||||
int id, |
||||
bool isLogistics, |
||||
List<OrderProductVOList> orderProductVOList, |
||||
int payChannel, |
||||
PromotionInfoDTO promotionInfoDTO,}){ |
||||
_addressId = addressId; |
||||
_buyNum = buyNum; |
||||
_id = id; |
||||
_isLogistics = isLogistics; |
||||
_orderProductVOList = orderProductVOList; |
||||
_payChannel = payChannel; |
||||
_promotionInfoDTO = promotionInfoDTO; |
||||
} |
||||
|
||||
SettlementBean.fromJson(dynamic json) { |
||||
_addressId = json['addressId']; |
||||
_buyNum = json['buyNum']; |
||||
_id = json['id']; |
||||
_isLogistics = json['is_logistics']; |
||||
if (json['orderProductVOList'] != null) { |
||||
_orderProductVOList = []; |
||||
json['orderProductVOList'].forEach((v) { |
||||
_orderProductVOList.add(OrderProductVOList.fromJson(v)); |
||||
}); |
||||
} |
||||
_payChannel = json['payChannel']; |
||||
_promotionInfoDTO = json['promotionInfoDTO'] != null ? PromotionInfoDTO.fromJson(json['promotionInfoDTO']) : null; |
||||
} |
||||
int _addressId; |
||||
int _buyNum; |
||||
int _id; |
||||
bool _isLogistics; |
||||
List<OrderProductVOList> _orderProductVOList; |
||||
int _payChannel; |
||||
PromotionInfoDTO _promotionInfoDTO; |
||||
|
||||
int get addressId => _addressId; |
||||
int get buyNum => _buyNum; |
||||
int get id => _id; |
||||
bool get isLogistics => _isLogistics; |
||||
List<OrderProductVOList> get orderProductVOList => _orderProductVOList; |
||||
int get payChannel => _payChannel; |
||||
PromotionInfoDTO get promotionInfoDTO => _promotionInfoDTO; |
||||
|
||||
|
||||
Map<String, dynamic> toJson() { |
||||
final map = <String, dynamic>{}; |
||||
map['addressId'] = _addressId; |
||||
map['buyNum'] = _buyNum; |
||||
map['id'] = _id; |
||||
map['is_logistics'] = _isLogistics; |
||||
if (_orderProductVOList != null) { |
||||
map['orderProductVOList'] = _orderProductVOList.map((v) => v.toJson()).toList(); |
||||
} |
||||
map['payChannel'] = _payChannel; |
||||
if (_promotionInfoDTO != null) { |
||||
map['promotionInfoDTO'] = _promotionInfoDTO.toJson(); |
||||
} |
||||
return map; |
||||
} |
||||
|
||||
set addressId(int value) { |
||||
_addressId = value; |
||||
} |
||||
|
||||
set buyNum(int value) { |
||||
_buyNum = value; |
||||
} |
||||
|
||||
set id(int value) { |
||||
_id = value; |
||||
} |
||||
|
||||
set isLogistics(bool value) { |
||||
_isLogistics = value; |
||||
} |
||||
|
||||
set orderProductVOList(List<OrderProductVOList> value) { |
||||
_orderProductVOList = value; |
||||
} |
||||
|
||||
set payChannel(int value) { |
||||
_payChannel = value; |
||||
} |
||||
|
||||
set promotionInfoDTO(PromotionInfoDTO value) { |
||||
_promotionInfoDTO = value; |
||||
} |
||||
} |
||||
|
||||
/// couponId : 0 |
||||
/// promotionId : 0 |
||||
|
||||
class PromotionInfoDTO { |
||||
PromotionInfoDTO({ |
||||
int couponId, |
||||
int promotionId,}){ |
||||
_couponId = couponId; |
||||
_promotionId = promotionId; |
||||
} |
||||
|
||||
PromotionInfoDTO.fromJson(dynamic json) { |
||||
_couponId = json['couponId']; |
||||
_promotionId = json['promotionId']; |
||||
} |
||||
int _couponId; |
||||
int _promotionId; |
||||
|
||||
int get couponId => _couponId; |
||||
int get promotionId => _promotionId; |
||||
|
||||
|
||||
set couponId(int value) { |
||||
_couponId = value; |
||||
} |
||||
|
||||
Map<String, dynamic> toJson() { |
||||
final map = <String, dynamic>{}; |
||||
map['couponId'] = _couponId; |
||||
map['promotionId'] = _promotionId; |
||||
return map; |
||||
} |
||||
|
||||
set promotionId(int value) { |
||||
_promotionId = value; |
||||
} |
||||
} |
||||
|
||||
/// actInfo : {"couponDiscountAmount":0,"couponDiscountRate":0,"couponId":0,"couponType":0,"discountAmount":0,"discountRate":0,"promotionId":0,"promotionType":0} |
||||
/// additionalComment : {"bizType":0,"commentImgs":"","commentImgsFlag":true,"commentStar":0,"commentText":"","descStar":0,"hideFlag":true,"id":0,"isDelete":true,"likeNum":0,"logisticsStar":0,"mid":0,"orderProductId":0,"parentId":0,"productId":0,"sensitiveFlag":true,"serviceStar":0,"storeId":0} |
||||
/// buyNum : 0 |
||||
/// canApplyIntervention : 0 |
||||
/// comment : {"bizType":0,"commentImgs":"","commentImgsFlag":true,"commentStar":0,"commentText":"","descStar":0,"hideFlag":true,"id":0,"isDelete":true,"likeNum":0,"logisticsStar":0,"mid":0,"orderProductId":0,"parentId":0,"productId":0,"sensitiveFlag":true,"serviceStar":0,"storeId":0} |
||||
/// commentStatus : 0 |
||||
/// discountAmount : 0 |
||||
/// id : 0 |
||||
/// productId : 0 |
||||
/// productName : "" |
||||
/// returnCode : "" |
||||
/// returnStatus : 0 |
||||
/// returnType : 0 |
||||
/// sellPrice : 0 |
||||
/// skuId : 0 |
||||
/// skuImg : "" |
||||
/// skuNameStr : "" |
||||
|
||||
class OrderProductVOList { |
||||
OrderProductVOList({ |
||||
ActInfo actInfo, |
||||
AdditionalComment additionalComment, |
||||
int buyNum, |
||||
int canApplyIntervention, |
||||
Comment comment, |
||||
int commentStatus, |
||||
int discountAmount, |
||||
int id, |
||||
int productId, |
||||
String productName, |
||||
String returnCode, |
||||
int returnStatus, |
||||
int returnType, |
||||
int sellPrice, |
||||
int skuId, |
||||
String skuImg, |
||||
String skuNameStr,}){ |
||||
_actInfo = actInfo; |
||||
_additionalComment = additionalComment; |
||||
_buyNum = buyNum; |
||||
_canApplyIntervention = canApplyIntervention; |
||||
_comment = comment; |
||||
_commentStatus = commentStatus; |
||||
_discountAmount = discountAmount; |
||||
_id = id; |
||||
_productId = productId; |
||||
_productName = productName; |
||||
_returnCode = returnCode; |
||||
_returnStatus = returnStatus; |
||||
_returnType = returnType; |
||||
_sellPrice = sellPrice; |
||||
_skuId = skuId; |
||||
_skuImg = skuImg; |
||||
_skuNameStr = skuNameStr; |
||||
} |
||||
|
||||
OrderProductVOList.fromJson(dynamic json) { |
||||
_actInfo = json['actInfo'] != null ? ActInfo.fromJson(json['actInfo']) : null; |
||||
_additionalComment = json['additionalComment'] != null ? AdditionalComment.fromJson(json['additionalComment']) : null; |
||||
_buyNum = json['buyNum']; |
||||
_canApplyIntervention = json['canApplyIntervention']; |
||||
_comment = json['comment'] != null ? Comment.fromJson(json['comment']) : null; |
||||
_commentStatus = json['commentStatus']; |
||||
_discountAmount = json['discountAmount']; |
||||
_id = json['id']; |
||||
_productId = json['productId']; |
||||
_productName = json['productName']; |
||||
_returnCode = json['returnCode']; |
||||
_returnStatus = json['returnStatus']; |
||||
_returnType = json['returnType']; |
||||
_sellPrice = json['sellPrice']; |
||||
_skuId = json['skuId']; |
||||
_skuImg = json['skuImg']; |
||||
_skuNameStr = json['skuNameStr']; |
||||
} |
||||
ActInfo _actInfo; |
||||
AdditionalComment _additionalComment; |
||||
int _buyNum; |
||||
int _canApplyIntervention; |
||||
Comment _comment; |
||||
int _commentStatus; |
||||
int _discountAmount; |
||||
int _id; |
||||
int _productId; |
||||
String _productName; |
||||
String _returnCode; |
||||
int _returnStatus; |
||||
int _returnType; |
||||
int _sellPrice; |
||||
int _skuId; |
||||
String _skuImg; |
||||
String _skuNameStr; |
||||
|
||||
ActInfo get actInfo => _actInfo; |
||||
AdditionalComment get additionalComment => _additionalComment; |
||||
int get buyNum => _buyNum; |
||||
int get canApplyIntervention => _canApplyIntervention; |
||||
Comment get comment => _comment; |
||||
int get commentStatus => _commentStatus; |
||||
int get discountAmount => _discountAmount; |
||||
int get id => _id; |
||||
int get productId => _productId; |
||||
String get productName => _productName; |
||||
String get returnCode => _returnCode; |
||||
int get returnStatus => _returnStatus; |
||||
int get returnType => _returnType; |
||||
int get sellPrice => _sellPrice; |
||||
int get skuId => _skuId; |
||||
String get skuImg => _skuImg; |
||||
String get skuNameStr => _skuNameStr; |
||||
|
||||
|
||||
set actInfo(ActInfo value) { |
||||
_actInfo = value; |
||||
} |
||||
|
||||
Map<String, dynamic> toJson() { |
||||
final map = <String, dynamic>{}; |
||||
if (_actInfo != null) { |
||||
map['actInfo'] = _actInfo.toJson(); |
||||
} |
||||
if (_additionalComment != null) { |
||||
map['additionalComment'] = _additionalComment.toJson(); |
||||
} |
||||
map['buyNum'] = _buyNum; |
||||
map['canApplyIntervention'] = _canApplyIntervention; |
||||
if (_comment != null) { |
||||
map['comment'] = _comment.toJson(); |
||||
} |
||||
map['commentStatus'] = _commentStatus; |
||||
map['discountAmount'] = _discountAmount; |
||||
map['id'] = _id; |
||||
map['productId'] = _productId; |
||||
map['productName'] = _productName; |
||||
map['returnCode'] = _returnCode; |
||||
map['returnStatus'] = _returnStatus; |
||||
map['returnType'] = _returnType; |
||||
map['sellPrice'] = _sellPrice; |
||||
map['skuId'] = _skuId; |
||||
map['skuImg'] = _skuImg; |
||||
map['skuNameStr'] = _skuNameStr; |
||||
return map; |
||||
} |
||||
|
||||
set additionalComment(AdditionalComment value) { |
||||
_additionalComment = value; |
||||
} |
||||
|
||||
set buyNum(int value) { |
||||
_buyNum = value; |
||||
} |
||||
|
||||
set canApplyIntervention(int value) { |
||||
_canApplyIntervention = value; |
||||
} |
||||
|
||||
set comment(Comment value) { |
||||
_comment = value; |
||||
} |
||||
|
||||
set commentStatus(int value) { |
||||
_commentStatus = value; |
||||
} |
||||
|
||||
set discountAmount(int value) { |
||||
_discountAmount = value; |
||||
} |
||||
|
||||
set id(int value) { |
||||
_id = value; |
||||
} |
||||
|
||||
set productId(int value) { |
||||
_productId = value; |
||||
} |
||||
|
||||
set productName(String value) { |
||||
_productName = value; |
||||
} |
||||
|
||||
set returnCode(String value) { |
||||
_returnCode = value; |
||||
} |
||||
|
||||
set returnStatus(int value) { |
||||
_returnStatus = value; |
||||
} |
||||
|
||||
set returnType(int value) { |
||||
_returnType = value; |
||||
} |
||||
|
||||
set sellPrice(int value) { |
||||
_sellPrice = value; |
||||
} |
||||
|
||||
set skuId(int value) { |
||||
_skuId = value; |
||||
} |
||||
|
||||
set skuImg(String value) { |
||||
_skuImg = value; |
||||
} |
||||
|
||||
set skuNameStr(String value) { |
||||
_skuNameStr = value; |
||||
} |
||||
} |
||||
|
||||
/// bizType : 0 |
||||
/// commentImgs : "" |
||||
/// commentImgsFlag : true |
||||
/// commentStar : 0 |
||||
/// commentText : "" |
||||
/// descStar : 0 |
||||
/// hideFlag : true |
||||
/// id : 0 |
||||
/// isDelete : true |
||||
/// likeNum : 0 |
||||
/// logisticsStar : 0 |
||||
/// mid : 0 |
||||
/// orderProductId : 0 |
||||
/// parentId : 0 |
||||
/// productId : 0 |
||||
/// sensitiveFlag : true |
||||
/// serviceStar : 0 |
||||
/// storeId : 0 |
||||
|
||||
class Comment { |
||||
Comment({ |
||||
int bizType, |
||||
String commentImgs, |
||||
bool commentImgsFlag, |
||||
int commentStar, |
||||
String commentText, |
||||
int descStar, |
||||
bool hideFlag, |
||||
int id, |
||||
bool isDelete, |
||||
int likeNum, |
||||
int logisticsStar, |
||||
int mid, |
||||
int orderProductId, |
||||
int parentId, |
||||
int productId, |
||||
bool sensitiveFlag, |
||||
int serviceStar, |
||||
int storeId,}){ |
||||
_bizType = bizType; |
||||
_commentImgs = commentImgs; |
||||
_commentImgsFlag = commentImgsFlag; |
||||
_commentStar = commentStar; |
||||
_commentText = commentText; |
||||
_descStar = descStar; |
||||
_hideFlag = hideFlag; |
||||
_id = id; |
||||
_isDelete = isDelete; |
||||
_likeNum = likeNum; |
||||
_logisticsStar = logisticsStar; |
||||
_mid = mid; |
||||
_orderProductId = orderProductId; |
||||
_parentId = parentId; |
||||
_productId = productId; |
||||
_sensitiveFlag = sensitiveFlag; |
||||
_serviceStar = serviceStar; |
||||
_storeId = storeId; |
||||
} |
||||
|
||||
Comment.fromJson(dynamic json) { |
||||
_bizType = json['bizType']; |
||||
_commentImgs = json['commentImgs']; |
||||
_commentImgsFlag = json['commentImgsFlag']; |
||||
_commentStar = json['commentStar']; |
||||
_commentText = json['commentText']; |
||||
_descStar = json['descStar']; |
||||
_hideFlag = json['hideFlag']; |
||||
_id = json['id']; |
||||
_isDelete = json['isDelete']; |
||||
_likeNum = json['likeNum']; |
||||
_logisticsStar = json['logisticsStar']; |
||||
_mid = json['mid']; |
||||
_orderProductId = json['orderProductId']; |
||||
_parentId = json['parentId']; |
||||
_productId = json['productId']; |
||||
_sensitiveFlag = json['sensitiveFlag']; |
||||
_serviceStar = json['serviceStar']; |
||||
_storeId = json['storeId']; |
||||
} |
||||
int _bizType; |
||||
String _commentImgs; |
||||
bool _commentImgsFlag; |
||||
int _commentStar; |
||||
String _commentText; |
||||
int _descStar; |
||||
bool _hideFlag; |
||||
int _id; |
||||
bool _isDelete; |
||||
int _likeNum; |
||||
int _logisticsStar; |
||||
int _mid; |
||||
int _orderProductId; |
||||
int _parentId; |
||||
int _productId; |
||||
bool _sensitiveFlag; |
||||
int _serviceStar; |
||||
int _storeId; |
||||
|
||||
int get bizType => _bizType; |
||||
String get commentImgs => _commentImgs; |
||||
bool get commentImgsFlag => _commentImgsFlag; |
||||
int get commentStar => _commentStar; |
||||
String get commentText => _commentText; |
||||
int get descStar => _descStar; |
||||
bool get hideFlag => _hideFlag; |
||||
int get id => _id; |
||||
bool get isDelete => _isDelete; |
||||
int get likeNum => _likeNum; |
||||
int get logisticsStar => _logisticsStar; |
||||
int get mid => _mid; |
||||
int get orderProductId => _orderProductId; |
||||
int get parentId => _parentId; |
||||
int get productId => _productId; |
||||
bool get sensitiveFlag => _sensitiveFlag; |
||||
int get serviceStar => _serviceStar; |
||||
int get storeId => _storeId; |
||||
|
||||
|
||||
set bizType(int value) { |
||||
_bizType = value; |
||||
} |
||||
|
||||
Map<String, dynamic> toJson() { |
||||
final map = <String, dynamic>{}; |
||||
map['bizType'] = _bizType; |
||||
map['commentImgs'] = _commentImgs; |
||||
map['commentImgsFlag'] = _commentImgsFlag; |
||||
map['commentStar'] = _commentStar; |
||||
map['commentText'] = _commentText; |
||||
map['descStar'] = _descStar; |
||||
map['hideFlag'] = _hideFlag; |
||||
map['id'] = _id; |
||||
map['isDelete'] = _isDelete; |
||||
map['likeNum'] = _likeNum; |
||||
map['logisticsStar'] = _logisticsStar; |
||||
map['mid'] = _mid; |
||||
map['orderProductId'] = _orderProductId; |
||||
map['parentId'] = _parentId; |
||||
map['productId'] = _productId; |
||||
map['sensitiveFlag'] = _sensitiveFlag; |
||||
map['serviceStar'] = _serviceStar; |
||||
map['storeId'] = _storeId; |
||||
return map; |
||||
} |
||||
|
||||
set commentImgs(String value) { |
||||
_commentImgs = value; |
||||
} |
||||
|
||||
set commentImgsFlag(bool value) { |
||||
_commentImgsFlag = value; |
||||
} |
||||
|
||||
set commentStar(int value) { |
||||
_commentStar = value; |
||||
} |
||||
|
||||
set commentText(String value) { |
||||
_commentText = value; |
||||
} |
||||
|
||||
set descStar(int value) { |
||||
_descStar = value; |
||||
} |
||||
|
||||
set hideFlag(bool value) { |
||||
_hideFlag = value; |
||||
} |
||||
|
||||
set id(int value) { |
||||
_id = value; |
||||
} |
||||
|
||||
set isDelete(bool value) { |
||||
_isDelete = value; |
||||
} |
||||
|
||||
set likeNum(int value) { |
||||
_likeNum = value; |
||||
} |
||||
|
||||
set logisticsStar(int value) { |
||||
_logisticsStar = value; |
||||
} |
||||
|
||||
set mid(int value) { |
||||
_mid = value; |
||||
} |
||||
|
||||
set orderProductId(int value) { |
||||
_orderProductId = value; |
||||
} |
||||
|
||||
set parentId(int value) { |
||||
_parentId = value; |
||||
} |
||||
|
||||
set productId(int value) { |
||||
_productId = value; |
||||
} |
||||
|
||||
set sensitiveFlag(bool value) { |
||||
_sensitiveFlag = value; |
||||
} |
||||
|
||||
set serviceStar(int value) { |
||||
_serviceStar = value; |
||||
} |
||||
|
||||
set storeId(int value) { |
||||
_storeId = value; |
||||
} |
||||
} |
||||
|
||||
/// bizType : 0 |
||||
/// commentImgs : "" |
||||
/// commentImgsFlag : true |
||||
/// commentStar : 0 |
||||
/// commentText : "" |
||||
/// descStar : 0 |
||||
/// hideFlag : true |
||||
/// id : 0 |
||||
/// isDelete : true |
||||
/// likeNum : 0 |
||||
/// logisticsStar : 0 |
||||
/// mid : 0 |
||||
/// orderProductId : 0 |
||||
/// parentId : 0 |
||||
/// productId : 0 |
||||
/// sensitiveFlag : true |
||||
/// serviceStar : 0 |
||||
/// storeId : 0 |
||||
|
||||
class AdditionalComment { |
||||
AdditionalComment({ |
||||
int bizType, |
||||
String commentImgs, |
||||
bool commentImgsFlag, |
||||
int commentStar, |
||||
String commentText, |
||||
int descStar, |
||||
bool hideFlag, |
||||
int id, |
||||
bool isDelete, |
||||
int likeNum, |
||||
int logisticsStar, |
||||
int mid, |
||||
int orderProductId, |
||||
int parentId, |
||||
int productId, |
||||
bool sensitiveFlag, |
||||
int serviceStar, |
||||
int storeId,}){ |
||||
_bizType = bizType; |
||||
_commentImgs = commentImgs; |
||||
_commentImgsFlag = commentImgsFlag; |
||||
_commentStar = commentStar; |
||||
_commentText = commentText; |
||||
_descStar = descStar; |
||||
_hideFlag = hideFlag; |
||||
_id = id; |
||||
_isDelete = isDelete; |
||||
_likeNum = likeNum; |
||||
_logisticsStar = logisticsStar; |
||||
_mid = mid; |
||||
_orderProductId = orderProductId; |
||||
_parentId = parentId; |
||||
_productId = productId; |
||||
_sensitiveFlag = sensitiveFlag; |
||||
_serviceStar = serviceStar; |
||||
_storeId = storeId; |
||||
} |
||||
|
||||
AdditionalComment.fromJson(dynamic json) { |
||||
_bizType = json['bizType']; |
||||
_commentImgs = json['commentImgs']; |
||||
_commentImgsFlag = json['commentImgsFlag']; |
||||
_commentStar = json['commentStar']; |
||||
_commentText = json['commentText']; |
||||
_descStar = json['descStar']; |
||||
_hideFlag = json['hideFlag']; |
||||
_id = json['id']; |
||||
_isDelete = json['isDelete']; |
||||
_likeNum = json['likeNum']; |
||||
_logisticsStar = json['logisticsStar']; |
||||
_mid = json['mid']; |
||||
_orderProductId = json['orderProductId']; |
||||
_parentId = json['parentId']; |
||||
_productId = json['productId']; |
||||
_sensitiveFlag = json['sensitiveFlag']; |
||||
_serviceStar = json['serviceStar']; |
||||
_storeId = json['storeId']; |
||||
} |
||||
int _bizType; |
||||
String _commentImgs; |
||||
bool _commentImgsFlag; |
||||
int _commentStar; |
||||
String _commentText; |
||||
int _descStar; |
||||
bool _hideFlag; |
||||
int _id; |
||||
bool _isDelete; |
||||
int _likeNum; |
||||
int _logisticsStar; |
||||
int _mid; |
||||
int _orderProductId; |
||||
int _parentId; |
||||
int _productId; |
||||
bool _sensitiveFlag; |
||||
int _serviceStar; |
||||
int _storeId; |
||||
|
||||
int get bizType => _bizType; |
||||
String get commentImgs => _commentImgs; |
||||
bool get commentImgsFlag => _commentImgsFlag; |
||||
int get commentStar => _commentStar; |
||||
String get commentText => _commentText; |
||||
int get descStar => _descStar; |
||||
bool get hideFlag => _hideFlag; |
||||
int get id => _id; |
||||
bool get isDelete => _isDelete; |
||||
int get likeNum => _likeNum; |
||||
int get logisticsStar => _logisticsStar; |
||||
int get mid => _mid; |
||||
int get orderProductId => _orderProductId; |
||||
int get parentId => _parentId; |
||||
int get productId => _productId; |
||||
bool get sensitiveFlag => _sensitiveFlag; |
||||
int get serviceStar => _serviceStar; |
||||
int get storeId => _storeId; |
||||
|
||||
|
||||
set bizType(int value) { |
||||
_bizType = value; |
||||
} |
||||
|
||||
Map<String, dynamic> toJson() { |
||||
final map = <String, dynamic>{}; |
||||
map['bizType'] = _bizType; |
||||
map['commentImgs'] = _commentImgs; |
||||
map['commentImgsFlag'] = _commentImgsFlag; |
||||
map['commentStar'] = _commentStar; |
||||
map['commentText'] = _commentText; |
||||
map['descStar'] = _descStar; |
||||
map['hideFlag'] = _hideFlag; |
||||
map['id'] = _id; |
||||
map['isDelete'] = _isDelete; |
||||
map['likeNum'] = _likeNum; |
||||
map['logisticsStar'] = _logisticsStar; |
||||
map['mid'] = _mid; |
||||
map['orderProductId'] = _orderProductId; |
||||
map['parentId'] = _parentId; |
||||
map['productId'] = _productId; |
||||
map['sensitiveFlag'] = _sensitiveFlag; |
||||
map['serviceStar'] = _serviceStar; |
||||
map['storeId'] = _storeId; |
||||
return map; |
||||
} |
||||
|
||||
set commentImgs(String value) { |
||||
_commentImgs = value; |
||||
} |
||||
|
||||
set commentImgsFlag(bool value) { |
||||
_commentImgsFlag = value; |
||||
} |
||||
|
||||
set commentStar(int value) { |
||||
_commentStar = value; |
||||
} |
||||
|
||||
set commentText(String value) { |
||||
_commentText = value; |
||||
} |
||||
|
||||
set descStar(int value) { |
||||
_descStar = value; |
||||
} |
||||
|
||||
set hideFlag(bool value) { |
||||
_hideFlag = value; |
||||
} |
||||
|
||||
set id(int value) { |
||||
_id = value; |
||||
} |
||||
|
||||
set isDelete(bool value) { |
||||
_isDelete = value; |
||||
} |
||||
|
||||
set likeNum(int value) { |
||||
_likeNum = value; |
||||
} |
||||
|
||||
set logisticsStar(int value) { |
||||
_logisticsStar = value; |
||||
} |
||||
|
||||
set mid(int value) { |
||||
_mid = value; |
||||
} |
||||
|
||||
set orderProductId(int value) { |
||||
_orderProductId = value; |
||||
} |
||||
|
||||
set parentId(int value) { |
||||
_parentId = value; |
||||
} |
||||
|
||||
set productId(int value) { |
||||
_productId = value; |
||||
} |
||||
|
||||
set sensitiveFlag(bool value) { |
||||
_sensitiveFlag = value; |
||||
} |
||||
|
||||
set serviceStar(int value) { |
||||
_serviceStar = value; |
||||
} |
||||
|
||||
set storeId(int value) { |
||||
_storeId = value; |
||||
} |
||||
} |
||||
|
||||
/// couponDiscountAmount : 0 |
||||
/// couponDiscountRate : 0 |
||||
/// couponId : 0 |
||||
/// couponType : 0 |
||||
/// discountAmount : 0 |
||||
/// discountRate : 0 |
||||
/// promotionId : 0 |
||||
/// promotionType : 0 |
||||
|
||||
class ActInfo { |
||||
ActInfo({ |
||||
int couponDiscountAmount, |
||||
int couponDiscountRate, |
||||
int couponId, |
||||
int couponType, |
||||
int discountAmount, |
||||
int discountRate, |
||||
int promotionId, |
||||
int promotionType,}){ |
||||
_couponDiscountAmount = couponDiscountAmount; |
||||
_couponDiscountRate = couponDiscountRate; |
||||
_couponId = couponId; |
||||
_couponType = couponType; |
||||
_discountAmount = discountAmount; |
||||
_discountRate = discountRate; |
||||
_promotionId = promotionId; |
||||
_promotionType = promotionType; |
||||
} |
||||
|
||||
ActInfo.fromJson(dynamic json) { |
||||
_couponDiscountAmount = json['couponDiscountAmount']; |
||||
_couponDiscountRate = json['couponDiscountRate']; |
||||
_couponId = json['couponId']; |
||||
_couponType = json['couponType']; |
||||
_discountAmount = json['discountAmount']; |
||||
_discountRate = json['discountRate']; |
||||
_promotionId = json['promotionId']; |
||||
_promotionType = json['promotionType']; |
||||
} |
||||
int _couponDiscountAmount; |
||||
int _couponDiscountRate; |
||||
int _couponId; |
||||
int _couponType; |
||||
int _discountAmount; |
||||
int _discountRate; |
||||
int _promotionId; |
||||
int _promotionType; |
||||
|
||||
int get couponDiscountAmount => _couponDiscountAmount; |
||||
int get couponDiscountRate => _couponDiscountRate; |
||||
int get couponId => _couponId; |
||||
int get couponType => _couponType; |
||||
int get discountAmount => _discountAmount; |
||||
int get discountRate => _discountRate; |
||||
int get promotionId => _promotionId; |
||||
int get promotionType => _promotionType; |
||||
|
||||
|
||||
set couponDiscountAmount(int value) { |
||||
_couponDiscountAmount = value; |
||||
} |
||||
|
||||
Map<String, dynamic> toJson() { |
||||
final map = <String, dynamic>{}; |
||||
map['couponDiscountAmount'] = _couponDiscountAmount; |
||||
map['couponDiscountRate'] = _couponDiscountRate; |
||||
map['couponId'] = _couponId; |
||||
map['couponType'] = _couponType; |
||||
map['discountAmount'] = _discountAmount; |
||||
map['discountRate'] = _discountRate; |
||||
map['promotionId'] = _promotionId; |
||||
map['promotionType'] = _promotionType; |
||||
return map; |
||||
} |
||||
|
||||
set couponDiscountRate(int value) { |
||||
_couponDiscountRate = value; |
||||
} |
||||
|
||||
set couponId(int value) { |
||||
_couponId = value; |
||||
} |
||||
|
||||
set couponType(int value) { |
||||
_couponType = value; |
||||
} |
||||
|
||||
set discountAmount(int value) { |
||||
_discountAmount = value; |
||||
} |
||||
|
||||
set discountRate(int value) { |
||||
_discountRate = value; |
||||
} |
||||
|
||||
set promotionId(int value) { |
||||
_promotionId = value; |
||||
} |
||||
|
||||
set promotionType(int value) { |
||||
_promotionType = value; |
||||
} |
||||
} |
Loading…
Reference in new issue