fmk
3 years ago
18 changed files with 1666 additions and 1766 deletions
@ -0,0 +1,135 @@
|
||||
import 'package:huixiang/retrofit/data/order_product_vo.dart'; |
||||
|
||||
class DownOrder { |
||||
DownOrder({ |
||||
String id, |
||||
String orderCode, |
||||
dynamic storeId, |
||||
dynamic storeName, |
||||
dynamic orderStatus, |
||||
dynamic returnType, |
||||
dynamic shipperCode, |
||||
dynamic logisticsNum, |
||||
String orderSum, |
||||
dynamic accountPay, |
||||
dynamic discountAmount, |
||||
dynamic postFee, |
||||
dynamic paySum, |
||||
dynamic overTime, |
||||
List<OrderProductVOList> orderProductVOList, |
||||
dynamic moneyReturnList, |
||||
dynamic goodsReturnList, |
||||
dynamic tablePrice, |
||||
dynamic parentCode, |
||||
String parentId, |
||||
dynamic peopleNum, |
||||
int orderSource, |
||||
}) { |
||||
this.id = id; |
||||
this.orderCode = orderCode; |
||||
this.storeId = storeId; |
||||
this.storeName = storeName; |
||||
this.orderStatus = orderStatus; |
||||
this.returnType = returnType; |
||||
this.shipperCode = shipperCode; |
||||
this.logisticsNum = logisticsNum; |
||||
this.orderSum = orderSum; |
||||
this.accountPay = accountPay; |
||||
this.discountAmount = discountAmount; |
||||
this.postFee = postFee; |
||||
this.paySum = paySum; |
||||
this.overTime = overTime; |
||||
this.orderProductVOList = orderProductVOList; |
||||
this.moneyReturnList = moneyReturnList; |
||||
this.goodsReturnList = goodsReturnList; |
||||
this.tablePrice = tablePrice; |
||||
this.parentCode = parentCode; |
||||
this.parentId = parentId; |
||||
this.peopleNum = peopleNum; |
||||
this.orderSource = orderSource; |
||||
} |
||||
|
||||
DownOrder.fromJson(dynamic json) { |
||||
this.id = json['id']; |
||||
this.orderCode = json['orderCode']; |
||||
this.storeId = json['storeId']; |
||||
this.storeName = json['storeName']; |
||||
this.orderStatus = json['orderStatus']; |
||||
this.returnType = json['returnType']; |
||||
this.shipperCode = json['shipperCode']; |
||||
this.logisticsNum = json['logisticsNum']; |
||||
this.orderSum = json['orderSum']; |
||||
this.accountPay = json['accountPay']; |
||||
this.discountAmount = json['discountAmount']; |
||||
this.postFee = json['postFee']; |
||||
this.paySum = json['paySum']; |
||||
this.overTime = json['overTime']; |
||||
if (json['orderProductVOList'] != null) { |
||||
this.orderProductVOList = []; |
||||
json['orderProductVOList'].forEach((v) { |
||||
this.orderProductVOList.add(OrderProductVOList.fromJson(v)); |
||||
}); |
||||
} |
||||
this.moneyReturnList = json['moneyReturnList']; |
||||
this.goodsReturnList = json['goodsReturnList']; |
||||
this.tablePrice = json['tablePrice']; |
||||
this.parentCode = json['parentCode']; |
||||
this.parentId = json['parentId']; |
||||
this.peopleNum = json['peopleNum']; |
||||
this.orderSource = json['orderSource']; |
||||
} |
||||
|
||||
String id; |
||||
String orderCode; |
||||
dynamic storeId; |
||||
dynamic storeName; |
||||
dynamic orderStatus; |
||||
dynamic returnType; |
||||
dynamic shipperCode; |
||||
dynamic logisticsNum; |
||||
String orderSum; |
||||
dynamic accountPay; |
||||
dynamic discountAmount; |
||||
dynamic postFee; |
||||
dynamic paySum; |
||||
dynamic overTime; |
||||
List<OrderProductVOList> orderProductVOList; |
||||
dynamic moneyReturnList; |
||||
dynamic goodsReturnList; |
||||
dynamic tablePrice; |
||||
dynamic parentCode; |
||||
String parentId; |
||||
dynamic peopleNum; |
||||
int orderSource; |
||||
|
||||
Map<String, dynamic> toJson() { |
||||
final map = <String, dynamic>{}; |
||||
map['id'] = this.id; |
||||
map['orderCode'] = this.orderCode; |
||||
map['storeId'] = this.storeId; |
||||
map['storeName'] = this.storeName; |
||||
map['orderStatus'] = this.orderStatus; |
||||
map['returnType'] = this.returnType; |
||||
map['shipperCode'] = this.shipperCode; |
||||
map['logisticsNum'] = this.logisticsNum; |
||||
map['orderSum'] = this.orderSum; |
||||
map['accountPay'] = this.accountPay; |
||||
map['discountAmount'] = this.discountAmount; |
||||
map['postFee'] = this.postFee; |
||||
map['paySum'] = this.paySum; |
||||
map['overTime'] = this.overTime; |
||||
if (this.orderProductVOList != null) { |
||||
map['orderProductVOList'] = |
||||
this.orderProductVOList.map((v) => v.toJson()).toList(); |
||||
} |
||||
map['moneyReturnList'] = this.moneyReturnList; |
||||
map['goodsReturnList'] = this.goodsReturnList; |
||||
map['tablePrice'] = this.tablePrice; |
||||
map['parentCode'] = this.parentCode; |
||||
map['parentId'] = this.parentId; |
||||
map['peopleNum'] = this.peopleNum; |
||||
map['orderSource'] = this.orderSource; |
||||
return map; |
||||
} |
||||
} |
||||
|
@ -0,0 +1,685 @@
|
||||
|
||||
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, |
||||
String 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; |
||||
String _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; |
||||
String 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(String value) { |
||||
_skuId = value; |
||||
} |
||||
|
||||
set skuImg(String value) { |
||||
_skuImg = value; |
||||
} |
||||
|
||||
set skuNameStr(String value) { |
||||
_skuNameStr = 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; |
||||
} |
||||
} |
||||
|
||||
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; |
||||
} |
||||
} |
||||
|
||||
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; |
||||
} |
||||
} |
@ -1,491 +1,135 @@
|
||||
import 'package:huixiang/retrofit/data/down_order.dart'; |
||||
import 'package:huixiang/retrofit/data/order_product_vo.dart'; |
||||
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; |
||||
} |
||||
int cartNum; |
||||
String cartSum; |
||||
String addressId; |
||||
bool isSubscribe; |
||||
num isTakeOut; |
||||
String notes; |
||||
String id; |
||||
String numberOfPeople; |
||||
num orderSource; |
||||
String orderType; |
||||
num orderTypeId; |
||||
String parentCode; |
||||
String parentId; |
||||
num payChannel; |
||||
PromotionInfoDTOBean promotionInfoDTO; |
||||
String recMobile; |
||||
List<OrderProductVOList> orderProductVOList; |
||||
List<ShoppingCartSkuItemListBean> shoppingCartSkuItemList; |
||||
List<dynamic> skuItemDTOList; |
||||
num source; |
||||
String storeId; |
||||
String subcribeTime; |
||||
String tableId; |
||||
|
||||
PlaceOrderFirst( |
||||
{ |
||||
this.cartNum, |
||||
this.cartSum, |
||||
this.addressId, |
||||
this.isSubscribe, |
||||
this.isTakeOut, |
||||
this.notes, |
||||
this.id, |
||||
this.numberOfPeople, |
||||
this.orderSource, |
||||
this.orderType, |
||||
this.orderTypeId, |
||||
this.parentCode, |
||||
this.parentId, |
||||
this.payChannel, |
||||
this.promotionInfoDTO, |
||||
this.recMobile, |
||||
this.orderProductVOList, |
||||
this.shoppingCartSkuItemList, |
||||
this.skuItemDTOList, |
||||
this.source, |
||||
this.storeId, |
||||
this.subcribeTime, |
||||
this.tableId}); |
||||
|
||||
static PlaceOrderFirst fromJson(Map<String, dynamic> json) { |
||||
if (json == null) return null; |
||||
PlaceOrderFirst placeOrderFirst = PlaceOrderFirst(); |
||||
placeOrderFirst.cartNum = json['cartNum']; |
||||
placeOrderFirst.cartSum = json['cartSum']; |
||||
placeOrderFirst.addressId = json['addressId']; |
||||
placeOrderFirst.isSubscribe = json['isSubscribe']; |
||||
placeOrderFirst.isTakeOut = json['isTakeOut']; |
||||
placeOrderFirst.notes = json['notes']; |
||||
placeOrderFirst.id = json['id']; |
||||
placeOrderFirst.numberOfPeople = json['numberOfPeople']; |
||||
placeOrderFirst.orderSource = json['orderSource']; |
||||
placeOrderFirst.orderType = json['orderType']; |
||||
placeOrderFirst.orderTypeId = json['orderTypeId']; |
||||
placeOrderFirst.parentCode = json['parentCode']; |
||||
placeOrderFirst.parentId = json['parentId']; |
||||
placeOrderFirst.payChannel = json['payChannel']; |
||||
placeOrderFirst.promotionInfoDTO = |
||||
PromotionInfoDTOBean.fromJson(json['promotionInfoDTO']); |
||||
placeOrderFirst.recMobile = json['recMobile']; |
||||
placeOrderFirst.shoppingCartSkuItemList = []..addAll( |
||||
(json['shoppingCartSkuItemList'] as List ?? []) |
||||
.map((o) => ShoppingCartSkuItemListBean.fromJson(o))); |
||||
placeOrderFirst.orderProductVOList = []..addAll( |
||||
(json['orderProductVOList'] as List ?? []) |
||||
.map((o) => OrderProductVOList.fromJson(o))); |
||||
placeOrderFirst.skuItemDTOList = json['skuItemDTOList']; |
||||
placeOrderFirst.source = json['source']; |
||||
placeOrderFirst.storeId = json['storeId']; |
||||
placeOrderFirst.subcribeTime = json['subcribeTime']; |
||||
placeOrderFirst.tableId = json['tableId']; |
||||
return placeOrderFirst; |
||||
} |
||||
|
||||
Map<String, dynamic> toJson() => { |
||||
"cartNum": cartNum, |
||||
"cartSum": cartSum, |
||||
"addressId": addressId, |
||||
"isSubscribe": isSubscribe, |
||||
"isTakeOut": isTakeOut, |
||||
"notes": notes, |
||||
"id": id, |
||||
"numberOfPeople": numberOfPeople, |
||||
"orderSource": orderSource, |
||||
"orderType": orderType, |
||||
"orderTypeId": orderTypeId, |
||||
"parentCode": parentCode, |
||||
"parentId": parentId, |
||||
"payChannel": payChannel, |
||||
"promotionInfoDTO": promotionInfoDTO == null ? null : promotionInfoDTO.toJson(), |
||||
"recMobile": recMobile, |
||||
"shoppingCartSkuItemList": shoppingCartSkuItemList == null ? null : shoppingCartSkuItemList.map((e) => e.toJson()).toList(), |
||||
"orderProductVOList": orderProductVOList == null ? null : orderProductVOList.map((e) => e.toJson()).toList(), |
||||
"skuItemDTOList": skuItemDTOList, |
||||
"source": source, |
||||
"storeId": storeId, |
||||
"subcribeTime": subcribeTime, |
||||
"tableId": tableId, |
||||
}; |
||||
} |
||||
|
||||
/// deleted : true |
||||
/// id : 0 |
||||
/// productId : 0 |
||||
/// required : true |
||||
/// skuId : 0 |
||||
class PromotionInfoDTOBean { |
||||
String couponId; |
||||
String promotionId; |
||||
|
||||
class PlatterList { |
||||
PlatterList({ |
||||
bool deleted, |
||||
int id, |
||||
String productId, |
||||
bool required, |
||||
String skuId,}){ |
||||
_deleted = deleted; |
||||
_id = id; |
||||
_productId = productId; |
||||
_required = required; |
||||
_skuId = skuId; |
||||
} |
||||
PromotionInfoDTOBean({this.couponId, this.promotionId}); |
||||
|
||||
PlatterList.fromJson(dynamic json) { |
||||
_deleted = json['deleted']; |
||||
_id = json['id']; |
||||
_productId = json['productId']; |
||||
_required = json['required']; |
||||
_skuId = json['skuId']; |
||||
static PromotionInfoDTOBean fromJson(Map<String, dynamic> json) { |
||||
if (json == null) return null; |
||||
PromotionInfoDTOBean promotionInfoDTOBean = PromotionInfoDTOBean(); |
||||
promotionInfoDTOBean.couponId = json['couponId']; |
||||
promotionInfoDTOBean.promotionId = json['promotionId']; |
||||
return promotionInfoDTOBean; |
||||
} |
||||
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; |
||||
} |
||||
Map<String, dynamic> toJson() => { |
||||
"couponId": couponId, |
||||
"promotionId": promotionId, |
||||
}; |
||||
} |
@ -0,0 +1,182 @@
|
||||
|
||||
class ProductList { |
||||
String _id; |
||||
String _createTime; |
||||
String _createUser; |
||||
String _updateTime; |
||||
String _updateUser; |
||||
dynamic _tenantCode; |
||||
String _storeId; |
||||
String _orderId; |
||||
String _productId; |
||||
String _productName; |
||||
String _skuId; |
||||
String _skuNameStr; |
||||
String _skuImg; |
||||
int _buyNum; |
||||
int _refundNum; |
||||
double _weight; |
||||
String _applyPrice; |
||||
String _sellPrice; |
||||
String _postPay; |
||||
int _isDelete; |
||||
String _discountAmount; |
||||
int _discountPercent; |
||||
bool _status; |
||||
int _batch; |
||||
|
||||
String get id => _id; |
||||
|
||||
String get createTime => _createTime; |
||||
|
||||
String get createUser => _createUser; |
||||
|
||||
String get updateTime => _updateTime; |
||||
|
||||
String get updateUser => _updateUser; |
||||
|
||||
dynamic get tenantCode => _tenantCode; |
||||
|
||||
String get storeId => _storeId; |
||||
|
||||
String get orderId => _orderId; |
||||
|
||||
String get productId => _productId; |
||||
|
||||
String get productName => _productName; |
||||
|
||||
String get skuId => _skuId; |
||||
|
||||
String get skuNameStr => _skuNameStr; |
||||
|
||||
String get skuImg => _skuImg; |
||||
|
||||
int get buyNum => _buyNum; |
||||
|
||||
int get refundNum => _refundNum; |
||||
|
||||
double get weight => _weight; |
||||
|
||||
String get applyPrice => _applyPrice; |
||||
|
||||
String get sellPrice => _sellPrice; |
||||
|
||||
String get postPay => _postPay; |
||||
|
||||
int get isDelete => _isDelete; |
||||
|
||||
String get discountAmount => _discountAmount; |
||||
|
||||
int get discountPercent => _discountPercent; |
||||
|
||||
bool get status => _status; |
||||
|
||||
int get batch => _batch; |
||||
|
||||
ProductList( |
||||
{String id, |
||||
String createTime, |
||||
String createUser, |
||||
String updateTime, |
||||
String updateUser, |
||||
dynamic tenantCode, |
||||
String storeId, |
||||
String orderId, |
||||
String productId, |
||||
String productName, |
||||
String skuId, |
||||
String skuNameStr, |
||||
String skuImg, |
||||
int buyNum, |
||||
int refundNum, |
||||
double weight, |
||||
String applyPrice, |
||||
String sellPrice, |
||||
String postPay, |
||||
int isDelete, |
||||
String discountAmount, |
||||
int discountPercent, |
||||
bool status, |
||||
int batch}) { |
||||
_id = id; |
||||
_createTime = createTime; |
||||
_createUser = createUser; |
||||
_updateTime = updateTime; |
||||
_updateUser = updateUser; |
||||
_tenantCode = tenantCode; |
||||
_storeId = storeId; |
||||
_orderId = orderId; |
||||
_productId = productId; |
||||
_productName = productName; |
||||
_skuId = skuId; |
||||
_skuNameStr = skuNameStr; |
||||
_skuImg = skuImg; |
||||
_buyNum = buyNum; |
||||
_refundNum = refundNum; |
||||
_weight = weight; |
||||
_applyPrice = applyPrice; |
||||
_sellPrice = sellPrice; |
||||
_postPay = postPay; |
||||
_isDelete = isDelete; |
||||
_discountAmount = discountAmount; |
||||
_discountPercent = discountPercent; |
||||
_status = status; |
||||
_batch = batch; |
||||
} |
||||
|
||||
ProductList.fromJson(dynamic json) { |
||||
_id = json["id"]; |
||||
_createTime = json["createTime"]; |
||||
_createUser = json["createUser"]; |
||||
_updateTime = json["updateTime"]; |
||||
_updateUser = json["updateUser"]; |
||||
_tenantCode = json["tenantCode"]; |
||||
_storeId = json["storeId"]; |
||||
_orderId = json["orderId"]; |
||||
_productId = json["productId"]; |
||||
_productName = json["productName"]; |
||||
_skuId = json["skuId"]; |
||||
_skuNameStr = json["skuNameStr"]; |
||||
_skuImg = json["skuImg"]; |
||||
_buyNum = json["buyNum"]; |
||||
_refundNum = json["refundNum"]; |
||||
_weight = json["weight"]; |
||||
_applyPrice = json["applyPrice"]; |
||||
_sellPrice = json["sellPrice"]; |
||||
_postPay = json["postPay"]; |
||||
_isDelete = json["isDelete"]; |
||||
_discountAmount = json["discountAmount"]; |
||||
_discountPercent = json["discountPercent"]; |
||||
_status = json["status"]; |
||||
_batch = json["batch"]; |
||||
} |
||||
|
||||
Map<String, dynamic> toJson() { |
||||
var map = <String, dynamic>{}; |
||||
map["id"] = _id; |
||||
map["createTime"] = _createTime; |
||||
map["createUser"] = _createUser; |
||||
map["updateTime"] = _updateTime; |
||||
map["updateUser"] = _updateUser; |
||||
map["tenantCode"] = _tenantCode; |
||||
map["storeId"] = _storeId; |
||||
map["orderId"] = _orderId; |
||||
map["productId"] = _productId; |
||||
map["productName"] = _productName; |
||||
map["skuId"] = _skuId; |
||||
map["skuNameStr"] = _skuNameStr; |
||||
map["skuImg"] = _skuImg; |
||||
map["buyNum"] = _buyNum; |
||||
map["refundNum"] = _refundNum; |
||||
map["weight"] = _weight; |
||||
map["applyPrice"] = _applyPrice; |
||||
map["sellPrice"] = _sellPrice; |
||||
map["postPay"] = _postPay; |
||||
map["isDelete"] = _isDelete; |
||||
map["discountAmount"] = _discountAmount; |
||||
map["discountPercent"] = _discountPercent; |
||||
map["status"] = _status; |
||||
map["batch"] = _batch; |
||||
return map; |
||||
} |
||||
} |
Loading…
Reference in new issue