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.
177 lines
5.6 KiB
177 lines
5.6 KiB
/// summaryDate : "2023-09-14" |
|
/// dayMoney : "0" |
|
/// discountSum : "0.00" |
|
/// paySum : "0" |
|
/// rechargeMoney : "0" |
|
/// refundMoney : "0" |
|
/// orderNum : 0 |
|
/// rechargeOrderNum : 0 |
|
/// refundOrderNum : 0 |
|
/// payOrderNum : 0 |
|
/// discountOrderNum : 0 |
|
/// startDate : null |
|
/// endDate : null |
|
/// tablePerConsumption : null |
|
/// numberOfPeople : 0 |
|
/// peoplePerConsumption : "0" |
|
/// realDiscountPer : null |
|
/// tableRate : null |
|
|
|
class DayCount { |
|
DayCount({ |
|
String summaryDate, |
|
String dayMoney, |
|
String discountSum, |
|
String paySum, |
|
String rechargeMoney, |
|
String refundMoney, |
|
num orderNum, |
|
num rechargeOrderNum, |
|
num refundOrderNum, |
|
num payOrderNum, |
|
num discountOrderNum, |
|
dynamic startDate, |
|
dynamic endDate, |
|
dynamic tablePerConsumption, |
|
num numberOfPeople, |
|
String peoplePerConsumption, |
|
dynamic realDiscountPer, |
|
dynamic tableRate,}){ |
|
_summaryDate = summaryDate; |
|
_dayMoney = dayMoney; |
|
_discountSum = discountSum; |
|
_paySum = paySum; |
|
_rechargeMoney = rechargeMoney; |
|
_refundMoney = refundMoney; |
|
_orderNum = orderNum; |
|
_rechargeOrderNum = rechargeOrderNum; |
|
_refundOrderNum = refundOrderNum; |
|
_payOrderNum = payOrderNum; |
|
_discountOrderNum = discountOrderNum; |
|
_startDate = startDate; |
|
_endDate = endDate; |
|
_tablePerConsumption = tablePerConsumption; |
|
_numberOfPeople = numberOfPeople; |
|
_peoplePerConsumption = peoplePerConsumption; |
|
_realDiscountPer = realDiscountPer; |
|
_tableRate = tableRate; |
|
} |
|
|
|
DayCount.fromJson(dynamic json) { |
|
_summaryDate = json['summaryDate']; |
|
_dayMoney = json['dayMoney']; |
|
_discountSum = json['discountSum']; |
|
_paySum = json['paySum']; |
|
_rechargeMoney = json['rechargeMoney']; |
|
_refundMoney = json['refundMoney']; |
|
_orderNum = json['orderNum']; |
|
_rechargeOrderNum = json['rechargeOrderNum']; |
|
_refundOrderNum = json['refundOrderNum']; |
|
_payOrderNum = json['payOrderNum']; |
|
_discountOrderNum = json['discountOrderNum']; |
|
_startDate = json['startDate']; |
|
_endDate = json['endDate']; |
|
_tablePerConsumption = json['tablePerConsumption']; |
|
_numberOfPeople = json['numberOfPeople']; |
|
_peoplePerConsumption = json['peoplePerConsumption']; |
|
_realDiscountPer = json['realDiscountPer']; |
|
_tableRate = json['tableRate']; |
|
} |
|
String _summaryDate; |
|
String _dayMoney; |
|
String _discountSum; |
|
String _paySum; |
|
String _rechargeMoney; |
|
String _refundMoney; |
|
num _orderNum; |
|
num _rechargeOrderNum; |
|
num _refundOrderNum; |
|
num _payOrderNum; |
|
num _discountOrderNum; |
|
dynamic _startDate; |
|
dynamic _endDate; |
|
dynamic _tablePerConsumption; |
|
num _numberOfPeople; |
|
String _peoplePerConsumption; |
|
dynamic _realDiscountPer; |
|
dynamic _tableRate; |
|
DayCount copyWith({ String summaryDate, |
|
String dayMoney, |
|
String discountSum, |
|
String paySum, |
|
String rechargeMoney, |
|
String refundMoney, |
|
num orderNum, |
|
num rechargeOrderNum, |
|
num refundOrderNum, |
|
num payOrderNum, |
|
num discountOrderNum, |
|
dynamic startDate, |
|
dynamic endDate, |
|
dynamic tablePerConsumption, |
|
num numberOfPeople, |
|
String peoplePerConsumption, |
|
dynamic realDiscountPer, |
|
dynamic tableRate, |
|
}) => DayCount( summaryDate: summaryDate ?? _summaryDate, |
|
dayMoney: dayMoney ?? _dayMoney, |
|
discountSum: discountSum ?? _discountSum, |
|
paySum: paySum ?? _paySum, |
|
rechargeMoney: rechargeMoney ?? _rechargeMoney, |
|
refundMoney: refundMoney ?? _refundMoney, |
|
orderNum: orderNum ?? _orderNum, |
|
rechargeOrderNum: rechargeOrderNum ?? _rechargeOrderNum, |
|
refundOrderNum: refundOrderNum ?? _refundOrderNum, |
|
payOrderNum: payOrderNum ?? _payOrderNum, |
|
discountOrderNum: discountOrderNum ?? _discountOrderNum, |
|
startDate: startDate ?? _startDate, |
|
endDate: endDate ?? _endDate, |
|
tablePerConsumption: tablePerConsumption ?? _tablePerConsumption, |
|
numberOfPeople: numberOfPeople ?? _numberOfPeople, |
|
peoplePerConsumption: peoplePerConsumption ?? _peoplePerConsumption, |
|
realDiscountPer: realDiscountPer ?? _realDiscountPer, |
|
tableRate: tableRate ?? _tableRate, |
|
); |
|
String get summaryDate => _summaryDate; |
|
String get dayMoney => _dayMoney; |
|
String get discountSum => _discountSum; |
|
String get paySum => _paySum; |
|
String get rechargeMoney => _rechargeMoney; |
|
String get refundMoney => _refundMoney; |
|
num get orderNum => _orderNum; |
|
num get rechargeOrderNum => _rechargeOrderNum; |
|
num get refundOrderNum => _refundOrderNum; |
|
num get payOrderNum => _payOrderNum; |
|
num get discountOrderNum => _discountOrderNum; |
|
dynamic get startDate => _startDate; |
|
dynamic get endDate => _endDate; |
|
dynamic get tablePerConsumption => _tablePerConsumption; |
|
num get numberOfPeople => _numberOfPeople; |
|
String get peoplePerConsumption => _peoplePerConsumption; |
|
dynamic get realDiscountPer => _realDiscountPer; |
|
dynamic get tableRate => _tableRate; |
|
|
|
Map<String, dynamic> toJson() { |
|
final map = <String, dynamic>{}; |
|
map['summaryDate'] = _summaryDate; |
|
map['dayMoney'] = _dayMoney; |
|
map['discountSum'] = _discountSum; |
|
map['paySum'] = _paySum; |
|
map['rechargeMoney'] = _rechargeMoney; |
|
map['refundMoney'] = _refundMoney; |
|
map['orderNum'] = _orderNum; |
|
map['rechargeOrderNum'] = _rechargeOrderNum; |
|
map['refundOrderNum'] = _refundOrderNum; |
|
map['payOrderNum'] = _payOrderNum; |
|
map['discountOrderNum'] = _discountOrderNum; |
|
map['startDate'] = _startDate; |
|
map['endDate'] = _endDate; |
|
map['tablePerConsumption'] = _tablePerConsumption; |
|
map['numberOfPeople'] = _numberOfPeople; |
|
map['peoplePerConsumption'] = _peoplePerConsumption; |
|
map['realDiscountPer'] = _realDiscountPer; |
|
map['tableRate'] = _tableRate; |
|
return map; |
|
} |
|
|
|
} |