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.
97 lines
2.4 KiB
97 lines
2.4 KiB
/// localDate : null |
|
/// localDateTime : "2023-09-04 12:18:20" |
|
/// count : 0 |
|
/// amount : "19.00" |
|
/// refundAmount : "0.00" |
|
/// storeName : "屏东剉冰店(烧冷冰)" |
|
/// nickname : null |
|
/// phone : null |
|
|
|
class DayFlowList { |
|
DayFlowList({ |
|
dynamic localDate, |
|
String localDateTime, |
|
num count, |
|
String amount, |
|
String refundAmount, |
|
String storeName, |
|
dynamic nickname, |
|
dynamic phone,}){ |
|
_localDate = localDate; |
|
_localDateTime = localDateTime; |
|
_count = count; |
|
_amount = amount; |
|
_refundAmount = refundAmount; |
|
_storeName = storeName; |
|
_nickname = nickname; |
|
_phone = phone; |
|
} |
|
|
|
DayFlowList.fromJson(dynamic json) { |
|
_localDate = json['localDate']; |
|
_localDateTime = json['localDateTime']; |
|
_count = json['count']; |
|
_amount = json['amount']; |
|
_refundAmount = json['refundAmount']; |
|
_storeName = json['storeName']; |
|
_nickname = json['nickname']; |
|
_phone = json['phone']; |
|
} |
|
dynamic _localDate; |
|
String _localDateTime; |
|
num _count; |
|
String _amount; |
|
String _refundAmount; |
|
String _storeName; |
|
dynamic _nickname; |
|
dynamic _phone; |
|
DayFlowList copyWith({ dynamic localDate, |
|
String localDateTime, |
|
num count, |
|
String amount, |
|
String refundAmount, |
|
String storeName, |
|
dynamic nickname, |
|
dynamic phone, |
|
}) => DayFlowList( localDate: localDate ?? _localDate, |
|
localDateTime: localDateTime ?? _localDateTime, |
|
count: count ?? _count, |
|
amount: amount ?? _amount, |
|
refundAmount: refundAmount ?? _refundAmount, |
|
storeName: storeName ?? _storeName, |
|
nickname: nickname ?? _nickname, |
|
phone: phone ?? _phone, |
|
); |
|
dynamic get localDate => _localDate; |
|
String get localDateTime => _localDateTime; |
|
num get count => _count; |
|
String get amount => _amount; |
|
String get refundAmount => _refundAmount; |
|
String get storeName => _storeName; |
|
dynamic get nickname => _nickname; |
|
dynamic get phone => _phone; |
|
List<DayFlowList> _detailList; |
|
|
|
|
|
List<DayFlowList> get detailList => _detailList; |
|
|
|
set detailList(List<DayFlowList> value) { |
|
_detailList = value; |
|
} |
|
|
|
Map<String, dynamic> toJson() { |
|
final map = <String, dynamic>{}; |
|
map['localDate'] = _localDate; |
|
map['localDateTime'] = _localDateTime; |
|
map['count'] = _count; |
|
map['amount'] = _amount; |
|
map['refundAmount'] = _refundAmount; |
|
map['storeName'] = _storeName; |
|
map['nickname'] = _nickname; |
|
map['phone'] = _phone; |
|
return map; |
|
} |
|
|
|
|
|
|
|
} |