/// channels : ["海峡","回乡","boom"]
/// isOpen : true
/// preferentialList : [{"createTime":"2023-04-21 16:15:42","giftdMoney":"0.00","gitfdCouponId":null,"id":"1506553893994102784","isDeleted":0,"rechargeMoney":"0.01","rechargeType":0,"remark":"
充值说明:
平台充值根据用户在平台的会员等级享有不同的充值权益。
银卡用户享1.1倍充值会员权益,即充值100元账户110元。
金卡用户享1.2倍充值会员权益,即充值100元账户120元。
共创用户享1.3倍充值会员权益,即充值100元账户130元。
平台充值金可在平台上所有品牌和门店使用,包含:农场火锅、海峡姐妹、前进麦味、百年川椒、农场煮意、海峡姐妹生态农场等。
储值活动不与其他活动同享
","sortValue":1,"tenantCode":"admin"}]
class ChannelsList {
ChannelsList({
List channels,
bool isOpen,
List preferentialList,}){
_channels = channels;
_isOpen = isOpen;
_preferentialList = preferentialList;
}
ChannelsList.fromJson(dynamic json) {
_channels = json['channels'] != null ? json['channels'].cast() : [];
_isOpen = json['isOpen'];
if (json['preferentialList'] != null) {
_preferentialList = [];
json['preferentialList'].forEach((v) {
_preferentialList.add(PreferentialList.fromJson(v));
});
}
}
List _channels;
bool _isOpen;
List _preferentialList;
ChannelsList copyWith({ List channels,
bool isOpen,
List preferentialList,
}) => ChannelsList( channels: channels ?? _channels,
isOpen: isOpen ?? _isOpen,
preferentialList: preferentialList ?? _preferentialList,
);
List get channels => _channels;
bool get isOpen => _isOpen;
List get preferentialList => _preferentialList;
Map toJson() {
final map = {};
map['channels'] = _channels;
map['isOpen'] = _isOpen;
if (_preferentialList != null) {
map['preferentialList'] = _preferentialList.map((v) => v.toJson()).toList();
}
return map;
}
}
/// createTime : "2023-04-21 16:15:42"
/// giftdMoney : "0.00"
/// gitfdCouponId : null
/// id : "1506553893994102784"
/// isDeleted : 0
/// rechargeMoney : "0.01"
/// rechargeType : 0
/// remark : "充值说明:
平台充值根据用户在平台的会员等级享有不同的充值权益。
银卡用户享1.1倍充值会员权益,即充值100元账户110元。
金卡用户享1.2倍充值会员权益,即充值100元账户120元。
共创用户享1.3倍充值会员权益,即充值100元账户130元。
平台充值金可在平台上所有品牌和门店使用,包含:农场火锅、海峡姐妹、前进麦味、百年川椒、农场煮意、海峡姐妹生态农场等。
储值活动不与其他活动同享
"
/// sortValue : 1
/// tenantCode : "admin"
class PreferentialList {
PreferentialList({
String createTime,
String giftdMoney,
dynamic gitfdCouponId,
String id,
num isDeleted,
String rechargeMoney,
num rechargeType,
String remark,
num sortValue,
String tenantCode,}){
_createTime = createTime;
_giftdMoney = giftdMoney;
_gitfdCouponId = gitfdCouponId;
_id = id;
_isDeleted = isDeleted;
_rechargeMoney = rechargeMoney;
_rechargeType = rechargeType;
_remark = remark;
_sortValue = sortValue;
_tenantCode = tenantCode;
}
PreferentialList.fromJson(dynamic json) {
_createTime = json['createTime'];
_giftdMoney = json['giftdMoney'];
_gitfdCouponId = json['gitfdCouponId'];
_id = json['id'];
_isDeleted = json['isDeleted'];
_rechargeMoney = json['rechargeMoney'];
_rechargeType = json['rechargeType'];
_remark = json['remark'];
_sortValue = json['sortValue'];
_tenantCode = json['tenantCode'];
}
String _createTime;
String _giftdMoney;
dynamic _gitfdCouponId;
String _id;
num _isDeleted;
String _rechargeMoney;
num _rechargeType;
String _remark;
num _sortValue;
String _tenantCode;
PreferentialList copyWith({ String createTime,
String giftdMoney,
dynamic gitfdCouponId,
String id,
num isDeleted,
String rechargeMoney,
num rechargeType,
String remark,
num sortValue,
String tenantCode,
}) => PreferentialList( createTime: createTime ?? _createTime,
giftdMoney: giftdMoney ?? _giftdMoney,
gitfdCouponId: gitfdCouponId ?? _gitfdCouponId,
id: id ?? _id,
isDeleted: isDeleted ?? _isDeleted,
rechargeMoney: rechargeMoney ?? _rechargeMoney,
rechargeType: rechargeType ?? _rechargeType,
remark: remark ?? _remark,
sortValue: sortValue ?? _sortValue,
tenantCode: tenantCode ?? _tenantCode,
);
String get createTime => _createTime;
String get giftdMoney => _giftdMoney;
dynamic get gitfdCouponId => _gitfdCouponId;
String get id => _id;
num get isDeleted => _isDeleted;
String get rechargeMoney => _rechargeMoney;
num get rechargeType => _rechargeType;
String get remark => _remark;
num get sortValue => _sortValue;
String get tenantCode => _tenantCode;
Map toJson() {
final map = {};
map['createTime'] = _createTime;
map['giftdMoney'] = _giftdMoney;
map['gitfdCouponId'] = _gitfdCouponId;
map['id'] = _id;
map['isDeleted'] = _isDeleted;
map['rechargeMoney'] = _rechargeMoney;
map['rechargeType'] = _rechargeType;
map['remark'] = _remark;
map['sortValue'] = _sortValue;
map['tenantCode'] = _tenantCode;
return map;
}
}