You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

141 lines
4.7 KiB

/// dayMoney : "0"
/// yesterdayMoney : "0"
/// paySum : "0"
/// yesterdayPaySum : "0"
/// rechargeMoney : "0"
/// weekRechargeMoney : "0"
/// lastWeekRechargeMoney : "0"
/// orderNum : 0
/// yesterdayOrderNum : 0
/// memberNum : 21800
/// lastWeekMemberNum : 4
/// weekMemberNum : 1
/// newMemberNum : 0
/// yesterdayNewMemberNum : 0
class VipCountsInfo {
VipCountsInfo({
String dayMoney,
String yesterdayMoney,
String paySum,
String yesterdayPaySum,
String rechargeMoney,
String weekRechargeMoney,
String lastWeekRechargeMoney,
num orderNum,
num yesterdayOrderNum,
num memberNum,
num lastWeekMemberNum,
num weekMemberNum,
num newMemberNum,
num yesterdayNewMemberNum,}){
_dayMoney = dayMoney;
_yesterdayMoney = yesterdayMoney;
_paySum = paySum;
_yesterdayPaySum = yesterdayPaySum;
_rechargeMoney = rechargeMoney;
_weekRechargeMoney = weekRechargeMoney;
_lastWeekRechargeMoney = lastWeekRechargeMoney;
_orderNum = orderNum;
_yesterdayOrderNum = yesterdayOrderNum;
_memberNum = memberNum;
_lastWeekMemberNum = lastWeekMemberNum;
_weekMemberNum = weekMemberNum;
_newMemberNum = newMemberNum;
_yesterdayNewMemberNum = yesterdayNewMemberNum;
}
VipCountsInfo.fromJson(dynamic json) {
_dayMoney = json['dayMoney'];
_yesterdayMoney = json['yesterdayMoney'];
_paySum = json['paySum'];
_yesterdayPaySum = json['yesterdayPaySum'];
_rechargeMoney = json['rechargeMoney'];
_weekRechargeMoney = json['weekRechargeMoney'];
_lastWeekRechargeMoney = json['lastWeekRechargeMoney'];
_orderNum = json['orderNum'];
_yesterdayOrderNum = json['yesterdayOrderNum'];
_memberNum = json['memberNum'];
_lastWeekMemberNum = json['lastWeekMemberNum'];
_weekMemberNum = json['weekMemberNum'];
_newMemberNum = json['newMemberNum'];
_yesterdayNewMemberNum = json['yesterdayNewMemberNum'];
}
String _dayMoney;
String _yesterdayMoney;
String _paySum;
String _yesterdayPaySum;
String _rechargeMoney;
String _weekRechargeMoney;
String _lastWeekRechargeMoney;
num _orderNum;
num _yesterdayOrderNum;
num _memberNum;
num _lastWeekMemberNum;
num _weekMemberNum;
num _newMemberNum;
num _yesterdayNewMemberNum;
VipCountsInfo copyWith({ String dayMoney,
String yesterdayMoney,
String paySum,
String yesterdayPaySum,
String rechargeMoney,
String weekRechargeMoney,
String lastWeekRechargeMoney,
num orderNum,
num yesterdayOrderNum,
num memberNum,
num lastWeekMemberNum,
num weekMemberNum,
num newMemberNum,
num yesterdayNewMemberNum,
}) => VipCountsInfo( dayMoney: dayMoney ?? _dayMoney,
yesterdayMoney: yesterdayMoney ?? _yesterdayMoney,
paySum: paySum ?? _paySum,
yesterdayPaySum: yesterdayPaySum ?? _yesterdayPaySum,
rechargeMoney: rechargeMoney ?? _rechargeMoney,
weekRechargeMoney: weekRechargeMoney ?? _weekRechargeMoney,
lastWeekRechargeMoney: lastWeekRechargeMoney ?? _lastWeekRechargeMoney,
orderNum: orderNum ?? _orderNum,
yesterdayOrderNum: yesterdayOrderNum ?? _yesterdayOrderNum,
memberNum: memberNum ?? _memberNum,
lastWeekMemberNum: lastWeekMemberNum ?? _lastWeekMemberNum,
weekMemberNum: weekMemberNum ?? _weekMemberNum,
newMemberNum: newMemberNum ?? _newMemberNum,
yesterdayNewMemberNum: yesterdayNewMemberNum ?? _yesterdayNewMemberNum,
);
String get dayMoney => _dayMoney;
String get yesterdayMoney => _yesterdayMoney;
String get paySum => _paySum;
String get yesterdayPaySum => _yesterdayPaySum;
String get rechargeMoney => _rechargeMoney;
String get weekRechargeMoney => _weekRechargeMoney;
String get lastWeekRechargeMoney => _lastWeekRechargeMoney;
num get orderNum => _orderNum;
num get yesterdayOrderNum => _yesterdayOrderNum;
num get memberNum => _memberNum;
num get lastWeekMemberNum => _lastWeekMemberNum;
num get weekMemberNum => _weekMemberNum;
num get newMemberNum => _newMemberNum;
num get yesterdayNewMemberNum => _yesterdayNewMemberNum;
Map<String, dynamic> toJson() {
final map = <String, dynamic>{};
map['dayMoney'] = _dayMoney;
map['yesterdayMoney'] = _yesterdayMoney;
map['paySum'] = _paySum;
map['yesterdayPaySum'] = _yesterdayPaySum;
map['rechargeMoney'] = _rechargeMoney;
map['weekRechargeMoney'] = _weekRechargeMoney;
map['lastWeekRechargeMoney'] = _lastWeekRechargeMoney;
map['orderNum'] = _orderNum;
map['yesterdayOrderNum'] = _yesterdayOrderNum;
map['memberNum'] = _memberNum;
map['lastWeekMemberNum'] = _lastWeekMemberNum;
map['weekMemberNum'] = _weekMemberNum;
map['newMemberNum'] = _newMemberNum;
map['yesterdayNewMemberNum'] = _yesterdayNewMemberNum;
return map;
}
}