|
|
|
/// mid : "1379254113602109440"
|
|
|
|
/// sid : "1659496253991419904"
|
|
|
|
/// phoneNum : "13052919193"
|
|
|
|
/// nickName : ""
|
|
|
|
/// headimg : ""
|
|
|
|
/// sex : "0"
|
|
|
|
/// balance : "0.00"
|
|
|
|
/// realBalance : "0.00"
|
|
|
|
/// giftBalance : "0.00"
|
|
|
|
/// memberSourceCredit : false
|
|
|
|
/// money : "1.49"
|
|
|
|
/// memberCredit : false
|
|
|
|
/// greenMoney : "0.00"
|
|
|
|
/// raiseMoney : "0.00"
|
|
|
|
/// payPassword : "222222"
|
|
|
|
/// useableConponList : [{"id":"1730867009651998720","storeIds":["1333246101343436800","1432164681279078400","1665555596536971264"],"stores":[],"bizType":2,"fullType":"TOTAL_FULL","fullAmount":"0.00","discountAmount":"0.00","fullNumber":2,"dateOrDay":true,"startAfterDays":0,"daysValidate":3,"discountPercent":68,"limitAmount":"0.00","bizId":"","publishStartTime":"2023-05-05","publishEndTime":"2023-12-31","useStartTime":"2023-12-02 16:30:28","useEndTime":"2023-12-05 16:30:28","doStartTime":"00:00","doEndTime":"23:59","promotionId":"0","couponId":"1654409900576473088","receiveTime":"2023-12-02","useTime":null,"status":1,"tenantCode":"admin","type":2,"promotionName":"双杯优享6.8折(海峡姐妹)","usable":false,"usableReason":"不在可使用时间内,本券须在领取0天后,3天内使用","allProduct":false,"productSkuId":[],"productGroupIds":["1433971071249285120","1433971071266062336","1433971071287033856","1433971071303811072","1433971071316393984","1433972467273039872","1435141914704740352","1524320958125441024","1552172579970613248","1668105881067192320","1668134716433235968","1668134867440762880","1668134955919605760","1668135085221609472","1668135269255086080","1425708380399337472","1426064940447301632","1426067376096411648","1426095795836289024","1522572290481455104","1522572604823568384","1524327158112059392","1601821884305899520","1668135150308818944","1678291351080271872"],"productList":null,"isMaxCoupon":false,"productGroupList":[],"remark":"<p>1.本券自领取日起3天有效。<br />2.本券仅用于海峡姐妹饮品,一次性购买满2杯使用。<br />3.本券不可与其他活动同享。</p>","canUseBalance":true},{"id":"1738109465292439552","storeIds":["1432164681279078400"],"stores":[],"bizType":6,"fullType":"EACH_FULL","fullAmount":"0.00","discountAmount":"0.00","fullNumber":1,"dateOrDay":true,"startAfterDays":0,"daysValidate":90,"discountPercent":0,"limitAmount":"0.00","bizId":"","publishStartTime":"2023-08-28","publishEndTime":"2025-08-31","useStartTime":"2023-12-22 16:09:24","useEndTime":"2024-03-21 16:09:24","doStartTime":"00:00","doEndTime":"23:59","promotionId":"0","couponId":"1695995932824305664","receiveTime":"2023-12-22","useTime":null,"status":1,"tenantCode":"admin","type":6,"promotionName":"茶饮畅饮券","usable":false,"usableReason":null,"allProduct":false,"productSkuId":[],"productGroupIds":["1433971071249285120","1433971071266062336","1433971071287033856","1433971071303811072","1433972467273039872","1434859128668291072","1435141914704740352","1524320958125441024","1552172579970613248"],"productList":null,"isMaxCoupon":false,"productGroupList":[],"remark":"<p>1.本券仅作为有奖兑换凭证,不可转赠,不可兑换现金;<br />2.请在有效期内使用该券,逾期作废;<br />3.本券一次性核销。</p>","canUseBalance":true},{"id":"1739525906998755328","storeIds":["1432164681279078400"],"stores":[],"bizType":6,"fullType":"EACH_FULL","fullAmount":"0.00","discountAmount":"0.00","fullNumber":1,"dateOrDay":true,"startAfterDays":0,"daysValidate":90,"discountPercent":0,"limitAmount":"0.00","bizId":"","publishStartTime":"2023-08-28","publishEndTime":"2025-08-31","useStartTime":"2023-12-26 13:57:50","useEndTime":"2024-03-25 13:57:50","doStartTime":"00:00","doEndTime":"23:59","promotionId":"0","couponId":"1695995932824305664","receiveTime":"2023-12-26","useTime":null,"status":1,"tenantCode":"admin","type":6,"promotionName":"茶饮畅饮券","usable":false,"usableReason":null,"allProduct":false,"productSkuId":[],"productGroupIds":["1433971071249285120","1433971071266062336","1433971071287033856","1433971071303811072","1433972467273039872","1434859128668291072","1435141914704740352","1524320958125441024","1552172579970613248"],"productList":null,"isMaxCoupon":false,"productGroupList":[],"remark":"<p>1.本券仅作为有奖兑换凭证,不可转赠,不可兑换现金;<br />2.请在有效期内使用该券,逾期作废;<br />3.本券一次性核销。</p>","canUseBalance":true},{"id":"1739947698053709824","storeIds":["1627869775969386496"],"stores":[{"i
|
|
|
|
|
|
|
|
class PhoneQueryMemberInfo {
|
|
|
|
PhoneQueryMemberInfo({
|
|
|
|
String mid,
|
|
|
|
String sid,
|
|
|
|
String phoneNum,
|
|
|
|
String nickName,
|
|
|
|
String headimg,
|
|
|
|
String sex,
|
|
|
|
String balance,
|
|
|
|
String realBalance,
|
|
|
|
String giftBalance,
|
|
|
|
bool memberSourceCredit,
|
|
|
|
String money,
|
|
|
|
bool memberCredit,
|
|
|
|
String greenMoney,
|
|
|
|
String raiseMoney,
|
|
|
|
String payPassword,
|
|
|
|
List<UseableConponList> useableConponList,}){
|
|
|
|
_mid = mid;
|
|
|
|
_sid = sid;
|
|
|
|
_phoneNum = phoneNum;
|
|
|
|
_nickName = nickName;
|
|
|
|
_headimg = headimg;
|
|
|
|
_sex = sex;
|
|
|
|
_balance = balance;
|
|
|
|
_realBalance = realBalance;
|
|
|
|
_giftBalance = giftBalance;
|
|
|
|
_memberSourceCredit = memberSourceCredit;
|
|
|
|
_money = money;
|
|
|
|
_memberCredit = memberCredit;
|
|
|
|
_greenMoney = greenMoney;
|
|
|
|
_raiseMoney = raiseMoney;
|
|
|
|
_payPassword = payPassword;
|
|
|
|
_useableConponList = useableConponList;
|
|
|
|
}
|
|
|
|
|
|
|
|
PhoneQueryMemberInfo.fromJson(dynamic json) {
|
|
|
|
_mid = json['mid'];
|
|
|
|
_sid = json['sid'];
|
|
|
|
_phoneNum = json['phoneNum'];
|
|
|
|
_nickName = json['nickName'];
|
|
|
|
_headimg = json['headimg'];
|
|
|
|
_sex = json['sex'];
|
|
|
|
_balance = json['balance'];
|
|
|
|
_realBalance = json['realBalance'];
|
|
|
|
_giftBalance = json['giftBalance'];
|
|
|
|
_memberSourceCredit = json['memberSourceCredit'];
|
|
|
|
_money = json['money'];
|
|
|
|
_memberCredit = json['memberCredit'];
|
|
|
|
_greenMoney = json['greenMoney'];
|
|
|
|
_raiseMoney = json['raiseMoney'];
|
|
|
|
_payPassword = json['payPassword'];
|
|
|
|
if (json['useableConponList'] != null) {
|
|
|
|
_useableConponList = [];
|
|
|
|
json['useableConponList'].forEach((v) {
|
|
|
|
_useableConponList.add(UseableConponList.fromJson(v));
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
String _mid;
|
|
|
|
String _sid;
|
|
|
|
String _phoneNum;
|
|
|
|
String _nickName;
|
|
|
|
String _headimg;
|
|
|
|
String _sex;
|
|
|
|
String _balance;
|
|
|
|
String _realBalance;
|
|
|
|
String _giftBalance;
|
|
|
|
bool _memberSourceCredit;
|
|
|
|
String _money;
|
|
|
|
bool _memberCredit;
|
|
|
|
String _greenMoney;
|
|
|
|
String _raiseMoney;
|
|
|
|
String _payPassword;
|
|
|
|
List<UseableConponList> _useableConponList;
|
|
|
|
PhoneQueryMemberInfo copyWith({ String mid,
|
|
|
|
String sid,
|
|
|
|
String phoneNum,
|
|
|
|
String nickName,
|
|
|
|
String headimg,
|
|
|
|
String sex,
|
|
|
|
String balance,
|
|
|
|
String realBalance,
|
|
|
|
String giftBalance,
|
|
|
|
bool memberSourceCredit,
|
|
|
|
String money,
|
|
|
|
bool memberCredit,
|
|
|
|
String greenMoney,
|
|
|
|
String raiseMoney,
|
|
|
|
String payPassword,
|
|
|
|
List<UseableConponList> useableConponList,
|
|
|
|
}) => PhoneQueryMemberInfo( mid: mid ?? _mid,
|
|
|
|
sid: sid ?? _sid,
|
|
|
|
phoneNum: phoneNum ?? _phoneNum,
|
|
|
|
nickName: nickName ?? _nickName,
|
|
|
|
headimg: headimg ?? _headimg,
|
|
|
|
sex: sex ?? _sex,
|
|
|
|
balance: balance ?? _balance,
|
|
|
|
realBalance: realBalance ?? _realBalance,
|
|
|
|
giftBalance: giftBalance ?? _giftBalance,
|
|
|
|
memberSourceCredit: memberSourceCredit ?? _memberSourceCredit,
|
|
|
|
money: money ?? _money,
|
|
|
|
memberCredit: memberCredit ?? _memberCredit,
|
|
|
|
greenMoney: greenMoney ?? _greenMoney,
|
|
|
|
raiseMoney: raiseMoney ?? _raiseMoney,
|
|
|
|
payPassword: payPassword ?? _payPassword,
|
|
|
|
useableConponList: useableConponList ?? _useableConponList,
|
|
|
|
);
|
|
|
|
String get mid => _mid;
|
|
|
|
String get sid => _sid;
|
|
|
|
String get phoneNum => _phoneNum;
|
|
|
|
String get nickName => _nickName;
|
|
|
|
String get headimg => _headimg;
|
|
|
|
String get sex => _sex;
|
|
|
|
String get balance => _balance;
|
|
|
|
String get realBalance => _realBalance;
|
|
|
|
String get giftBalance => _giftBalance;
|
|
|
|
bool get memberSourceCredit => _memberSourceCredit;
|
|
|
|
String get money => _money;
|
|
|
|
bool get memberCredit => _memberCredit;
|
|
|
|
String get greenMoney => _greenMoney;
|
|
|
|
String get raiseMoney => _raiseMoney;
|
|
|
|
String get payPassword => _payPassword;
|
|
|
|
List<UseableConponList> get useableConponList => _useableConponList;
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
final map = <String, dynamic>{};
|
|
|
|
map['mid'] = _mid;
|
|
|
|
map['sid'] = _sid;
|
|
|
|
map['phoneNum'] = _phoneNum;
|
|
|
|
map['nickName'] = _nickName;
|
|
|
|
map['headimg'] = _headimg;
|
|
|
|
map['sex'] = _sex;
|
|
|
|
map['balance'] = _balance;
|
|
|
|
map['realBalance'] = _realBalance;
|
|
|
|
map['giftBalance'] = _giftBalance;
|
|
|
|
map['memberSourceCredit'] = _memberSourceCredit;
|
|
|
|
map['money'] = _money;
|
|
|
|
map['memberCredit'] = _memberCredit;
|
|
|
|
map['greenMoney'] = _greenMoney;
|
|
|
|
map['raiseMoney'] = _raiseMoney;
|
|
|
|
map['payPassword'] = _payPassword;
|
|
|
|
if (_useableConponList != null) {
|
|
|
|
map['useableConponList'] = _useableConponList.map((v) => v.toJson()).toList();
|
|
|
|
}
|
|
|
|
return map;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
/// id : "1730867009651998720"
|
|
|
|
/// storeIds : ["1333246101343436800","1432164681279078400","1665555596536971264"]
|
|
|
|
/// stores : []
|
|
|
|
/// bizType : 2
|
|
|
|
/// fullType : "TOTAL_FULL"
|
|
|
|
/// fullAmount : "0.00"
|
|
|
|
/// discountAmount : "0.00"
|
|
|
|
/// fullNumber : 2
|
|
|
|
/// dateOrDay : true
|
|
|
|
/// startAfterDays : 0
|
|
|
|
/// daysValidate : 3
|
|
|
|
/// discountPercent : 68
|
|
|
|
/// limitAmount : "0.00"
|
|
|
|
/// bizId : ""
|
|
|
|
/// publishStartTime : "2023-05-05"
|
|
|
|
/// publishEndTime : "2023-12-31"
|
|
|
|
/// useStartTime : "2023-12-02 16:30:28"
|
|
|
|
/// useEndTime : "2023-12-05 16:30:28"
|
|
|
|
/// doStartTime : "00:00"
|
|
|
|
/// doEndTime : "23:59"
|
|
|
|
/// promotionId : "0"
|
|
|
|
/// couponId : "1654409900576473088"
|
|
|
|
/// receiveTime : "2023-12-02"
|
|
|
|
/// useTime : null
|
|
|
|
/// status : 1
|
|
|
|
/// tenantCode : "admin"
|
|
|
|
/// type : 2
|
|
|
|
/// promotionName : "双杯优享6.8折(海峡姐妹)"
|
|
|
|
/// usable : false
|
|
|
|
/// usableReason : "不在可使用时间内,本券须在领取0天后,3天内使用"
|
|
|
|
/// allProduct : false
|
|
|
|
/// productSkuId : []
|
|
|
|
/// productGroupIds : ["1433971071249285120","1433971071266062336","1433971071287033856","1433971071303811072","1433971071316393984","1433972467273039872","1435141914704740352","1524320958125441024","1552172579970613248","1668105881067192320","1668134716433235968","1668134867440762880","1668134955919605760","1668135085221609472","1668135269255086080","1425708380399337472","1426064940447301632","1426067376096411648","1426095795836289024","1522572290481455104","1522572604823568384","1524327158112059392","1601821884305899520","1668135150308818944","1678291351080271872"]
|
|
|
|
/// productList : null
|
|
|
|
/// isMaxCoupon : false
|
|
|
|
/// productGroupList : []
|
|
|
|
/// remark : "<p>1.本券自领取日起3天有效。<br />2.本券仅用于海峡姐妹饮品,一次性购买满2杯使用。<br />3.本券不可与其他活动同享。</p>"
|
|
|
|
/// canUseBalance : true
|
|
|
|
|
|
|
|
class UseableConponList {
|
|
|
|
UseableConponList({
|
|
|
|
String id,
|
|
|
|
List<String> storeIds,
|
|
|
|
List<dynamic> stores,
|
|
|
|
num bizType,
|
|
|
|
String fullType,
|
|
|
|
String fullAmount,
|
|
|
|
String discountAmount,
|
|
|
|
num fullNumber,
|
|
|
|
bool dateOrDay,
|
|
|
|
num startAfterDays,
|
|
|
|
num daysValidate,
|
|
|
|
num discountPercent,
|
|
|
|
String limitAmount,
|
|
|
|
String bizId,
|
|
|
|
String publishStartTime,
|
|
|
|
String publishEndTime,
|
|
|
|
String useStartTime,
|
|
|
|
String useEndTime,
|
|
|
|
String doStartTime,
|
|
|
|
String doEndTime,
|
|
|
|
String promotionId,
|
|
|
|
String couponId,
|
|
|
|
String receiveTime,
|
|
|
|
dynamic useTime,
|
|
|
|
num status,
|
|
|
|
String tenantCode,
|
|
|
|
num type,
|
|
|
|
String promotionName,
|
|
|
|
bool usable,
|
|
|
|
String usableReason,
|
|
|
|
bool allProduct,
|
|
|
|
List<dynamic> productSkuId,
|
|
|
|
List<String> productGroupIds,
|
|
|
|
dynamic productList,
|
|
|
|
bool isMaxCoupon,
|
|
|
|
List<dynamic> productGroupList,
|
|
|
|
String remark,
|
|
|
|
bool canUseBalance,}){
|
|
|
|
_id = id;
|
|
|
|
_storeIds = storeIds;
|
|
|
|
_stores = stores;
|
|
|
|
_bizType = bizType;
|
|
|
|
_fullType = fullType;
|
|
|
|
_fullAmount = fullAmount;
|
|
|
|
_discountAmount = discountAmount;
|
|
|
|
_fullNumber = fullNumber;
|
|
|
|
_dateOrDay = dateOrDay;
|
|
|
|
_startAfterDays = startAfterDays;
|
|
|
|
_daysValidate = daysValidate;
|
|
|
|
_discountPercent = discountPercent;
|
|
|
|
_limitAmount = limitAmount;
|
|
|
|
_bizId = bizId;
|
|
|
|
_publishStartTime = publishStartTime;
|
|
|
|
_publishEndTime = publishEndTime;
|
|
|
|
_useStartTime = useStartTime;
|
|
|
|
_useEndTime = useEndTime;
|
|
|
|
_doStartTime = doStartTime;
|
|
|
|
_doEndTime = doEndTime;
|
|
|
|
_promotionId = promotionId;
|
|
|
|
_couponId = couponId;
|
|
|
|
_receiveTime = receiveTime;
|
|
|
|
_useTime = useTime;
|
|
|
|
_status = status;
|
|
|
|
_tenantCode = tenantCode;
|
|
|
|
_type = type;
|
|
|
|
_promotionName = promotionName;
|
|
|
|
_usable = usable;
|
|
|
|
_usableReason = usableReason;
|
|
|
|
_allProduct = allProduct;
|
|
|
|
_productSkuId = productSkuId;
|
|
|
|
_productGroupIds = productGroupIds;
|
|
|
|
_productList = productList;
|
|
|
|
_isMaxCoupon = isMaxCoupon;
|
|
|
|
_productGroupList = productGroupList;
|
|
|
|
_remark = remark;
|
|
|
|
_canUseBalance = canUseBalance;
|
|
|
|
}
|
|
|
|
|
|
|
|
UseableConponList.fromJson(dynamic json) {
|
|
|
|
_id = json['id'];
|
|
|
|
_storeIds = json['storeIds'] != null ? json['storeIds'].cast<String>() : [];
|
|
|
|
// if (json['stores'] != null) {
|
|
|
|
// _stores = [];
|
|
|
|
// json['stores'].forEach((v) {
|
|
|
|
// _stores.add(Dynamic.fromJson(v));
|
|
|
|
// });
|
|
|
|
// }
|
|
|
|
_bizType = json['bizType'];
|
|
|
|
_fullType = json['fullType'];
|
|
|
|
_fullAmount = json['fullAmount'];
|
|
|
|
_discountAmount = json['discountAmount'];
|
|
|
|
_fullNumber = json['fullNumber'];
|
|
|
|
_dateOrDay = json['dateOrDay'];
|
|
|
|
_startAfterDays = json['startAfterDays'];
|
|
|
|
_daysValidate = json['daysValidate'];
|
|
|
|
_discountPercent = json['discountPercent'];
|
|
|
|
_limitAmount = json['limitAmount'];
|
|
|
|
_bizId = json['bizId'];
|
|
|
|
_publishStartTime = json['publishStartTime'];
|
|
|
|
_publishEndTime = json['publishEndTime'];
|
|
|
|
_useStartTime = json['useStartTime'];
|
|
|
|
_useEndTime = json['useEndTime'];
|
|
|
|
_doStartTime = json['doStartTime'];
|
|
|
|
_doEndTime = json['doEndTime'];
|
|
|
|
_promotionId = json['promotionId'];
|
|
|
|
_couponId = json['couponId'];
|
|
|
|
_receiveTime = json['receiveTime'];
|
|
|
|
_useTime = json['useTime'];
|
|
|
|
_status = json['status'];
|
|
|
|
_tenantCode = json['tenantCode'];
|
|
|
|
_type = json['type'];
|
|
|
|
_promotionName = json['promotionName'];
|
|
|
|
_usable = json['usable'];
|
|
|
|
_usableReason = json['usableReason'];
|
|
|
|
_allProduct = json['allProduct'];
|
|
|
|
if (json['productSkuId'] != null) {
|
|
|
|
_productSkuId = [];
|
|
|
|
// json['productSkuId'].forEach((v) {
|
|
|
|
// _productSkuId.add(Dynamic.fromJson(v));
|
|
|
|
// });
|
|
|
|
}
|
|
|
|
_productGroupIds = json['productGroupIds'] != null ? json['productGroupIds'].cast<String>() : [];
|
|
|
|
_productList = json['productList'];
|
|
|
|
_isMaxCoupon = json['isMaxCoupon'];
|
|
|
|
if (json['productGroupList'] != null) {
|
|
|
|
_productGroupList = [];
|
|
|
|
// json['productGroupList'].forEach((v) {
|
|
|
|
// _productGroupList.add(Dynamic.fromJson(v));
|
|
|
|
// });
|
|
|
|
}
|
|
|
|
_remark = json['remark'];
|
|
|
|
_canUseBalance = json['canUseBalance'];
|
|
|
|
}
|
|
|
|
String _id;
|
|
|
|
List<String> _storeIds;
|
|
|
|
List<dynamic> _stores;
|
|
|
|
num _bizType;
|
|
|
|
String _fullType;
|
|
|
|
String _fullAmount;
|
|
|
|
String _discountAmount;
|
|
|
|
num _fullNumber;
|
|
|
|
bool _dateOrDay;
|
|
|
|
num _startAfterDays;
|
|
|
|
num _daysValidate;
|
|
|
|
num _discountPercent;
|
|
|
|
String _limitAmount;
|
|
|
|
String _bizId;
|
|
|
|
String _publishStartTime;
|
|
|
|
String _publishEndTime;
|
|
|
|
String _useStartTime;
|
|
|
|
String _useEndTime;
|
|
|
|
String _doStartTime;
|
|
|
|
String _doEndTime;
|
|
|
|
String _promotionId;
|
|
|
|
String _couponId;
|
|
|
|
String _receiveTime;
|
|
|
|
dynamic _useTime;
|
|
|
|
num _status;
|
|
|
|
String _tenantCode;
|
|
|
|
num _type;
|
|
|
|
String _promotionName;
|
|
|
|
bool _usable;
|
|
|
|
String _usableReason;
|
|
|
|
bool _allProduct;
|
|
|
|
List<dynamic> _productSkuId;
|
|
|
|
List<String> _productGroupIds;
|
|
|
|
dynamic _productList;
|
|
|
|
bool _isMaxCoupon;
|
|
|
|
List<dynamic> _productGroupList;
|
|
|
|
String _remark;
|
|
|
|
bool _canUseBalance;
|
|
|
|
UseableConponList copyWith({ String id,
|
|
|
|
List<String> storeIds,
|
|
|
|
List<dynamic> stores,
|
|
|
|
num bizType,
|
|
|
|
String fullType,
|
|
|
|
String fullAmount,
|
|
|
|
String discountAmount,
|
|
|
|
num fullNumber,
|
|
|
|
bool dateOrDay,
|
|
|
|
num startAfterDays,
|
|
|
|
num daysValidate,
|
|
|
|
num discountPercent,
|
|
|
|
String limitAmount,
|
|
|
|
String bizId,
|
|
|
|
String publishStartTime,
|
|
|
|
String publishEndTime,
|
|
|
|
String useStartTime,
|
|
|
|
String useEndTime,
|
|
|
|
String doStartTime,
|
|
|
|
String doEndTime,
|
|
|
|
String promotionId,
|
|
|
|
String couponId,
|
|
|
|
String receiveTime,
|
|
|
|
dynamic useTime,
|
|
|
|
num status,
|
|
|
|
String tenantCode,
|
|
|
|
num type,
|
|
|
|
String promotionName,
|
|
|
|
bool usable,
|
|
|
|
String usableReason,
|
|
|
|
bool allProduct,
|
|
|
|
List<dynamic> productSkuId,
|
|
|
|
List<String> productGroupIds,
|
|
|
|
dynamic productList,
|
|
|
|
bool isMaxCoupon,
|
|
|
|
List<dynamic> productGroupList,
|
|
|
|
String remark,
|
|
|
|
bool canUseBalance,
|
|
|
|
}) => UseableConponList( id: id ?? _id,
|
|
|
|
storeIds: storeIds ?? _storeIds,
|
|
|
|
stores: stores ?? _stores,
|
|
|
|
bizType: bizType ?? _bizType,
|
|
|
|
fullType: fullType ?? _fullType,
|
|
|
|
fullAmount: fullAmount ?? _fullAmount,
|
|
|
|
discountAmount: discountAmount ?? _discountAmount,
|
|
|
|
fullNumber: fullNumber ?? _fullNumber,
|
|
|
|
dateOrDay: dateOrDay ?? _dateOrDay,
|
|
|
|
startAfterDays: startAfterDays ?? _startAfterDays,
|
|
|
|
daysValidate: daysValidate ?? _daysValidate,
|
|
|
|
discountPercent: discountPercent ?? _discountPercent,
|
|
|
|
limitAmount: limitAmount ?? _limitAmount,
|
|
|
|
bizId: bizId ?? _bizId,
|
|
|
|
publishStartTime: publishStartTime ?? _publishStartTime,
|
|
|
|
publishEndTime: publishEndTime ?? _publishEndTime,
|
|
|
|
useStartTime: useStartTime ?? _useStartTime,
|
|
|
|
useEndTime: useEndTime ?? _useEndTime,
|
|
|
|
doStartTime: doStartTime ?? _doStartTime,
|
|
|
|
doEndTime: doEndTime ?? _doEndTime,
|
|
|
|
promotionId: promotionId ?? _promotionId,
|
|
|
|
couponId: couponId ?? _couponId,
|
|
|
|
receiveTime: receiveTime ?? _receiveTime,
|
|
|
|
useTime: useTime ?? _useTime,
|
|
|
|
status: status ?? _status,
|
|
|
|
tenantCode: tenantCode ?? _tenantCode,
|
|
|
|
type: type ?? _type,
|
|
|
|
promotionName: promotionName ?? _promotionName,
|
|
|
|
usable: usable ?? _usable,
|
|
|
|
usableReason: usableReason ?? _usableReason,
|
|
|
|
allProduct: allProduct ?? _allProduct,
|
|
|
|
productSkuId: productSkuId ?? _productSkuId,
|
|
|
|
productGroupIds: productGroupIds ?? _productGroupIds,
|
|
|
|
productList: productList ?? _productList,
|
|
|
|
isMaxCoupon: isMaxCoupon ?? _isMaxCoupon,
|
|
|
|
productGroupList: productGroupList ?? _productGroupList,
|
|
|
|
remark: remark ?? _remark,
|
|
|
|
canUseBalance: canUseBalance ?? _canUseBalance,
|
|
|
|
);
|
|
|
|
String get id => _id;
|
|
|
|
List<String> get storeIds => _storeIds;
|
|
|
|
List<dynamic> get stores => _stores;
|
|
|
|
num get bizType => _bizType;
|
|
|
|
String get fullType => _fullType;
|
|
|
|
String get fullAmount => _fullAmount;
|
|
|
|
String get discountAmount => _discountAmount;
|
|
|
|
num get fullNumber => _fullNumber;
|
|
|
|
bool get dateOrDay => _dateOrDay;
|
|
|
|
num get startAfterDays => _startAfterDays;
|
|
|
|
num get daysValidate => _daysValidate;
|
|
|
|
num get discountPercent => _discountPercent;
|
|
|
|
String get limitAmount => _limitAmount;
|
|
|
|
String get bizId => _bizId;
|
|
|
|
String get publishStartTime => _publishStartTime;
|
|
|
|
String get publishEndTime => _publishEndTime;
|
|
|
|
String get useStartTime => _useStartTime;
|
|
|
|
String get useEndTime => _useEndTime;
|
|
|
|
String get doStartTime => _doStartTime;
|
|
|
|
String get doEndTime => _doEndTime;
|
|
|
|
String get promotionId => _promotionId;
|
|
|
|
String get couponId => _couponId;
|
|
|
|
String get receiveTime => _receiveTime;
|
|
|
|
dynamic get useTime => _useTime;
|
|
|
|
num get status => _status;
|
|
|
|
String get tenantCode => _tenantCode;
|
|
|
|
num get type => _type;
|
|
|
|
String get promotionName => _promotionName;
|
|
|
|
bool get usable => _usable;
|
|
|
|
String get usableReason => _usableReason;
|
|
|
|
bool get allProduct => _allProduct;
|
|
|
|
List<dynamic> get productSkuId => _productSkuId;
|
|
|
|
List<String> get productGroupIds => _productGroupIds;
|
|
|
|
dynamic get productList => _productList;
|
|
|
|
bool get isMaxCoupon => _isMaxCoupon;
|
|
|
|
List<dynamic> get productGroupList => _productGroupList;
|
|
|
|
String get remark => _remark;
|
|
|
|
bool get canUseBalance => _canUseBalance;
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
final map = <String, dynamic>{};
|
|
|
|
map['id'] = _id;
|
|
|
|
map['storeIds'] = _storeIds;
|
|
|
|
if (_stores != null) {
|
|
|
|
map['stores'] = _stores.map((v) => v.toJson()).toList();
|
|
|
|
}
|
|
|
|
map['bizType'] = _bizType;
|
|
|
|
map['fullType'] = _fullType;
|
|
|
|
map['fullAmount'] = _fullAmount;
|
|
|
|
map['discountAmount'] = _discountAmount;
|
|
|
|
map['fullNumber'] = _fullNumber;
|
|
|
|
map['dateOrDay'] = _dateOrDay;
|
|
|
|
map['startAfterDays'] = _startAfterDays;
|
|
|
|
map['daysValidate'] = _daysValidate;
|
|
|
|
map['discountPercent'] = _discountPercent;
|
|
|
|
map['limitAmount'] = _limitAmount;
|
|
|
|
map['bizId'] = _bizId;
|
|
|
|
map['publishStartTime'] = _publishStartTime;
|
|
|
|
map['publishEndTime'] = _publishEndTime;
|
|
|
|
map['useStartTime'] = _useStartTime;
|
|
|
|
map['useEndTime'] = _useEndTime;
|
|
|
|
map['doStartTime'] = _doStartTime;
|
|
|
|
map['doEndTime'] = _doEndTime;
|
|
|
|
map['promotionId'] = _promotionId;
|
|
|
|
map['couponId'] = _couponId;
|
|
|
|
map['receiveTime'] = _receiveTime;
|
|
|
|
map['useTime'] = _useTime;
|
|
|
|
map['status'] = _status;
|
|
|
|
map['tenantCode'] = _tenantCode;
|
|
|
|
map['type'] = _type;
|
|
|
|
map['promotionName'] = _promotionName;
|
|
|
|
map['usable'] = _usable;
|
|
|
|
map['usableReason'] = _usableReason;
|
|
|
|
map['allProduct'] = _allProduct;
|
|
|
|
if (_productSkuId != null) {
|
|
|
|
map['productSkuId'] = _productSkuId.map((v) => v.toJson()).toList();
|
|
|
|
}
|
|
|
|
map['productGroupIds'] = _productGroupIds;
|
|
|
|
map['productList'] = _productList;
|
|
|
|
map['isMaxCoupon'] = _isMaxCoupon;
|
|
|
|
if (_productGroupList != null) {
|
|
|
|
map['productGroupList'] = _productGroupList.map((v) => v.toJson()).toList();
|
|
|
|
}
|
|
|
|
map['remark'] = _remark;
|
|
|
|
map['canUseBalance'] = _canUseBalance;
|
|
|
|
return map;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|