import 'package:huixiang/retrofit/data/order_product_vo.dart'; /// 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, 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; int _payChannel; PromotionInfoDTO _promotionInfoDTO; int get addressId => _addressId; int get buyNum => _buyNum; int get id => _id; bool get isLogistics => _isLogistics; List get orderProductVOList => _orderProductVOList; int get payChannel => _payChannel; PromotionInfoDTO get promotionInfoDTO => _promotionInfoDTO; Map toJson() { final map = {}; 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 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 toJson() { final map = {}; map['couponId'] = _couponId; map['promotionId'] = _promotionId; return map; } set promotionId(int value) { _promotionId = value; } }