wurong
2 years ago
15 changed files with 550 additions and 189 deletions
After Width: | Height: | Size: 894 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 658 B |
@ -0,0 +1,155 @@ |
|||||||
|
/// preferentialList : [{"id":"1506553893994102784","rechargeMoney":"100.00","giftdMoney":"0.00","gitfdCouponId":null,"tenantCode":"admin","createTime":"2022-11-11 10:10:31","isDeleted":0,"rechargeType":0,"remark":"<p>充值说明:<br />平台充值根据用户在平台的会员等级享有不同的充值权益。<br />银卡用户享1.1倍充值会员权益,即充值100元账户110元。<br />金卡用户享1.2倍充值会员权益,即充值100元账户120元。<br />共创用户享1.3倍充值会员权益,即充值100元账户130元。<br />平台充值金可在平台上所有品牌和门店使用,包含:农场火锅、海峡姐妹、前进麦味、百年川椒、农场煮意、一心回乡生态农场等。<br />储值活动不与其他活动同享</p>","sortValue":1},{"id":"1506553858271215616","rechargeMoney":"300.00","giftdMoney":"0.00","gitfdCouponId":null,"tenantCode":"admin","createTime":"2022-11-21 19:56:39","isDeleted":0,"rechargeType":0,"remark":"<p>平台充值根据用户在平台的会员等级享有不同的充值权益。<br />银卡用户享1.1倍充值会员权益,即充值100元账户110元。<br />金卡用户享1.2倍充值会员权益,即充值100元账户120元。<br />共创用户享1.3倍充值会员权益,即充值100元账户130元。<br />平台充值金可在平台上所有品牌和门店使用,包含:农场火锅、海峡姐妹、前进麦味、百年川椒、农场煮意、一心回乡生态农场等。</p>","sortValue":2},{"id":"1506553832157478912","rechargeMoney":"500.00","giftdMoney":"0.00","gitfdCouponId":null,"tenantCode":"admin","createTime":"2022-11-21 19:56:48","isDeleted":0,"rechargeType":0,"remark":"<p>平台充值根据用户在平台的会员等级享有不同的充值权益。<br />银卡用户享1.1倍充值会员权益,即充值100元账户110元。<br />金卡用户享1.2倍充值会员权益,即充值100元账户120元。<br />共创用户享1.3倍充值会员权益,即充值100元账户130元。<br />平台充值金可在平台上所有品牌和门店使用,包含:农场火锅、海峡姐妹、前进麦味、百年川椒、农场煮意、一心回乡生态农场等。</p>","sortValue":3},{"id":"1506553759084314624","rechargeMoney":"800.00","giftdMoney":"0.00","gitfdCouponId":null,"tenantCode":"admin","createTime":"2022-06-10 11:14:39","isDeleted":0,"rechargeType":0,"remark":"<p>平台充值根据用户在平台的会员等级享有不同的充值权益。<br />银卡用户享1.1倍充值会员权益,即充值100元账户110元。<br />金卡用户享1.2倍充值会员权益,即充值100元账户120元。<br />共创用户享1.3倍充值会员权益,即充值100元账户130元。<br />平台充值金可在平台上所有品牌和门店使用,包含:农场火锅、海峡姐妹、前进麦味、百年川椒、农场煮意、一心回乡生态农场等。</p>","sortValue":4},{"id":"1506553705988620288","rechargeMoney":"1000.00","giftdMoney":"0.00","gitfdCouponId":null,"tenantCode":"admin","createTime":"2022-11-21 19:56:55","isDeleted":0,"rechargeType":0,"remark":"<p>充值说明:<br />平台充值根据用户在平台的会员等级享有不同的充值权益。<br />银卡用户享1.1倍充值会员权益,即充值100元账户110元。<br />金卡用户享1.2倍充值会员权益,即充值100元账户120元。<br />共创用户享1.3倍充值会员权益,即充值100元账户130元。<br />平台充值金可在平台上所有品牌和门店使用,包含:农场火锅、海峡姐妹、前进麦味、百年川椒、农场煮意、一心回乡生态农场等。</p>","sortValue":5},{"id":"1506553668529291264","rechargeMoney":"1500.00","giftdMoney":"0.00","gitfdCouponId":null,"tenantCode":"admin","createTime":"2022-06-10 11:14:52","isDeleted":0,"rechargeType":0,"remark":"<p>充值说明:<br />平台充值根据用户在平台的会员等级享有不同的充值权益。<br />银卡用户享1.1倍充值会员权益,即充值100元账户110元。<br />金卡用户享1.2倍充值会员权益,即充值100元账户120元。<br />共创用户享1.3倍充值会员权益,即充值100元账户130元。<br />平台充值金可在平台上所有品牌和门店使用,包含:农场火锅、海峡姐妹、前进麦味、百年川椒、农场煮意、一心回乡生态农场等。</p>","sortValue":6}] |
||||||
|
/// channels : ["海峡","回乡","boom"] |
||||||
|
/// isOpen : false |
||||||
|
|
||||||
|
class RechargeActLists { |
||||||
|
RechargeActLists({ |
||||||
|
List<PreferentialList> preferentialList, |
||||||
|
List<String> channels, |
||||||
|
bool isOpen,}){ |
||||||
|
_preferentialList = preferentialList; |
||||||
|
_channels = channels; |
||||||
|
_isOpen = isOpen; |
||||||
|
} |
||||||
|
|
||||||
|
RechargeActLists.fromJson(dynamic json) { |
||||||
|
if (json['preferentialList'] != null) { |
||||||
|
_preferentialList = []; |
||||||
|
json['preferentialList'].forEach((v) { |
||||||
|
_preferentialList.add(PreferentialList.fromJson(v)); |
||||||
|
}); |
||||||
|
} |
||||||
|
_channels = json['channels'] != null ? json['channels'].cast<String>() : []; |
||||||
|
_isOpen = json['isOpen']; |
||||||
|
} |
||||||
|
List<PreferentialList> _preferentialList; |
||||||
|
List<String> _channels; |
||||||
|
bool _isOpen; |
||||||
|
RechargeActLists copyWith({ List<PreferentialList> preferentialList, |
||||||
|
List<String> channels, |
||||||
|
bool isOpen, |
||||||
|
}) => RechargeActLists( preferentialList: preferentialList ?? _preferentialList, |
||||||
|
channels: channels ?? _channels, |
||||||
|
isOpen: isOpen ?? _isOpen, |
||||||
|
); |
||||||
|
List<PreferentialList> get preferentialList => _preferentialList; |
||||||
|
List<String> get channels => _channels; |
||||||
|
bool get isOpen => _isOpen; |
||||||
|
|
||||||
|
Map<String, dynamic> toJson() { |
||||||
|
final map = <String, dynamic>{}; |
||||||
|
if (_preferentialList != null) { |
||||||
|
map['preferentialList'] = _preferentialList.map((v) => v.toJson()).toList(); |
||||||
|
} |
||||||
|
map['channels'] = _channels; |
||||||
|
map['isOpen'] = _isOpen; |
||||||
|
return map; |
||||||
|
} |
||||||
|
|
||||||
|
} |
||||||
|
|
||||||
|
/// id : "1506553893994102784" |
||||||
|
/// rechargeMoney : "100.00" |
||||||
|
/// giftdMoney : "0.00" |
||||||
|
/// gitfdCouponId : null |
||||||
|
/// tenantCode : "admin" |
||||||
|
/// createTime : "2022-11-11 10:10:31" |
||||||
|
/// isDeleted : 0 |
||||||
|
/// rechargeType : 0 |
||||||
|
/// remark : "<p>充值说明:<br />平台充值根据用户在平台的会员等级享有不同的充值权益。<br />银卡用户享1.1倍充值会员权益,即充值100元账户110元。<br />金卡用户享1.2倍充值会员权益,即充值100元账户120元。<br />共创用户享1.3倍充值会员权益,即充值100元账户130元。<br />平台充值金可在平台上所有品牌和门店使用,包含:农场火锅、海峡姐妹、前进麦味、百年川椒、农场煮意、一心回乡生态农场等。<br />储值活动不与其他活动同享</p>" |
||||||
|
/// sortValue : 1 |
||||||
|
|
||||||
|
class PreferentialList { |
||||||
|
PreferentialList({ |
||||||
|
String id, |
||||||
|
String rechargeMoney, |
||||||
|
String giftdMoney, |
||||||
|
dynamic gitfdCouponId, |
||||||
|
String tenantCode, |
||||||
|
String createTime, |
||||||
|
num isDeleted, |
||||||
|
num rechargeType, |
||||||
|
String remark, |
||||||
|
num sortValue,}){ |
||||||
|
_id = id; |
||||||
|
_rechargeMoney = rechargeMoney; |
||||||
|
_giftdMoney = giftdMoney; |
||||||
|
_gitfdCouponId = gitfdCouponId; |
||||||
|
_tenantCode = tenantCode; |
||||||
|
_createTime = createTime; |
||||||
|
_isDeleted = isDeleted; |
||||||
|
_rechargeType = rechargeType; |
||||||
|
_remark = remark; |
||||||
|
_sortValue = sortValue; |
||||||
|
} |
||||||
|
|
||||||
|
PreferentialList.fromJson(dynamic json) { |
||||||
|
_id = json['id']; |
||||||
|
_rechargeMoney = json['rechargeMoney']; |
||||||
|
_giftdMoney = json['giftdMoney']; |
||||||
|
_gitfdCouponId = json['gitfdCouponId']; |
||||||
|
_tenantCode = json['tenantCode']; |
||||||
|
_createTime = json['createTime']; |
||||||
|
_isDeleted = json['isDeleted']; |
||||||
|
_rechargeType = json['rechargeType']; |
||||||
|
_remark = json['remark']; |
||||||
|
_sortValue = json['sortValue']; |
||||||
|
} |
||||||
|
String _id; |
||||||
|
String _rechargeMoney; |
||||||
|
String _giftdMoney; |
||||||
|
dynamic _gitfdCouponId; |
||||||
|
String _tenantCode; |
||||||
|
String _createTime; |
||||||
|
num _isDeleted; |
||||||
|
num _rechargeType; |
||||||
|
String _remark; |
||||||
|
num _sortValue; |
||||||
|
PreferentialList copyWith({ String id, |
||||||
|
String rechargeMoney, |
||||||
|
String giftdMoney, |
||||||
|
dynamic gitfdCouponId, |
||||||
|
String tenantCode, |
||||||
|
String createTime, |
||||||
|
num isDeleted, |
||||||
|
num rechargeType, |
||||||
|
String remark, |
||||||
|
num sortValue, |
||||||
|
}) => PreferentialList( id: id ?? _id, |
||||||
|
rechargeMoney: rechargeMoney ?? _rechargeMoney, |
||||||
|
giftdMoney: giftdMoney ?? _giftdMoney, |
||||||
|
gitfdCouponId: gitfdCouponId ?? _gitfdCouponId, |
||||||
|
tenantCode: tenantCode ?? _tenantCode, |
||||||
|
createTime: createTime ?? _createTime, |
||||||
|
isDeleted: isDeleted ?? _isDeleted, |
||||||
|
rechargeType: rechargeType ?? _rechargeType, |
||||||
|
remark: remark ?? _remark, |
||||||
|
sortValue: sortValue ?? _sortValue, |
||||||
|
); |
||||||
|
String get id => _id; |
||||||
|
String get rechargeMoney => _rechargeMoney; |
||||||
|
String get giftdMoney => _giftdMoney; |
||||||
|
dynamic get gitfdCouponId => _gitfdCouponId; |
||||||
|
String get tenantCode => _tenantCode; |
||||||
|
String get createTime => _createTime; |
||||||
|
num get isDeleted => _isDeleted; |
||||||
|
num get rechargeType => _rechargeType; |
||||||
|
String get remark => _remark; |
||||||
|
num get sortValue => _sortValue; |
||||||
|
|
||||||
|
Map<String, dynamic> toJson() { |
||||||
|
final map = <String, dynamic>{}; |
||||||
|
map['id'] = _id; |
||||||
|
map['rechargeMoney'] = _rechargeMoney; |
||||||
|
map['giftdMoney'] = _giftdMoney; |
||||||
|
map['gitfdCouponId'] = _gitfdCouponId; |
||||||
|
map['tenantCode'] = _tenantCode; |
||||||
|
map['createTime'] = _createTime; |
||||||
|
map['isDeleted'] = _isDeleted; |
||||||
|
map['rechargeType'] = _rechargeType; |
||||||
|
map['remark'] = _remark; |
||||||
|
map['sortValue'] = _sortValue; |
||||||
|
return map; |
||||||
|
} |
||||||
|
|
||||||
|
} |
Loading…
Reference in new issue