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.
477 lines
14 KiB
477 lines
14 KiB
1 year ago
|
/// id : "1720379729141301248"
|
||
|
/// createTime : "2023-11-03 17:57:45"
|
||
|
/// createUser : "0"
|
||
|
/// updateTime : "2023-11-03 17:57:45"
|
||
|
/// updateUser : "0"
|
||
|
/// mid : "1379254113602109440"
|
||
|
/// storeId : "1645318098540036096"
|
||
|
/// orderId : "1720379636644315136"
|
||
|
/// orderProductId : "1720379636782727168"
|
||
|
/// productId : "1645714128276291584"
|
||
|
/// productSkuId : "1645714128343400448"
|
||
|
/// ticketWipedTimeTemplateId : "0"
|
||
|
/// amount : "0.01"
|
||
|
/// name : "四神汤 "
|
||
|
/// code : "T202311031757452621760001"
|
||
|
/// useStartTime : "2023-11-03 00:00:00"
|
||
|
/// useEndTime : "2023-12-02 17:57:45"
|
||
|
/// finishTime : null
|
||
|
/// type : "NORMAL"
|
||
|
/// source : null
|
||
|
/// takeType : null
|
||
|
/// style : ""
|
||
|
/// state : 1
|
||
|
/// canSettlement : true
|
||
|
/// canSubscribe : true
|
||
|
/// isDelete : 0
|
||
|
/// tenantCode : "1195"
|
||
|
/// ticketItemList : [{"id":"1720379729216798720","createTime":"2023-11-03 17:57:45","createUser":"0","updateTime":"2023-11-03 17:57:45","updateUser":"0","ticketId":"1720379729141301248","relationType":"PRODUCT","relationId":"1645714128343400448","name":"测试规格222","showImage":"","state":1,"finishTime":null,"isDelete":0,"tenantCode":"1195","canWipedNumber":1},{"id":"1720379729195827200","createTime":"2023-11-03 17:57:45","createUser":"0","updateTime":"2023-11-03 17:57:45","updateUser":"0","ticketId":"1720379729141301248","relationType":"PRODUCT","relationId":"1645714128343400448","name":"测试规格","showImage":"","state":1,"finishTime":null,"isDelete":0,"tenantCode":"1195","canWipedNumber":1}]
|
||
|
/// userName : ""
|
||
|
/// userAvatar : ""
|
||
|
/// isogenyNumber : 1
|
||
|
/// businessStartDate : null
|
||
|
/// businessEndDate : null
|
||
|
|
||
|
class TicketDetails {
|
||
|
TicketDetails({
|
||
|
String id,
|
||
|
String createTime,
|
||
|
String createUser,
|
||
|
String updateTime,
|
||
|
String updateUser,
|
||
|
String mid,
|
||
|
String storeId,
|
||
|
String orderId,
|
||
|
String orderProductId,
|
||
|
String productId,
|
||
|
String productSkuId,
|
||
|
String ticketWipedTimeTemplateId,
|
||
|
String amount,
|
||
|
String name,
|
||
|
String code,
|
||
|
String useStartTime,
|
||
|
String useEndTime,
|
||
|
dynamic finishTime,
|
||
|
String type,
|
||
|
dynamic source,
|
||
|
dynamic takeType,
|
||
|
String style,
|
||
|
num state,
|
||
|
bool canSettlement,
|
||
|
bool canSubscribe,
|
||
|
num isDelete,
|
||
|
String tenantCode,
|
||
|
List<TicketItemList> ticketItemList,
|
||
|
String userName,
|
||
|
String userAvatar,
|
||
|
num isogenyNumber,
|
||
|
dynamic businessStartDate,
|
||
|
dynamic businessEndDate,}){
|
||
|
_id = id;
|
||
|
_createTime = createTime;
|
||
|
_createUser = createUser;
|
||
|
_updateTime = updateTime;
|
||
|
_updateUser = updateUser;
|
||
|
_mid = mid;
|
||
|
_storeId = storeId;
|
||
|
_orderId = orderId;
|
||
|
_orderProductId = orderProductId;
|
||
|
_productId = productId;
|
||
|
_productSkuId = productSkuId;
|
||
|
_ticketWipedTimeTemplateId = ticketWipedTimeTemplateId;
|
||
|
_amount = amount;
|
||
|
_name = name;
|
||
|
_code = code;
|
||
|
_useStartTime = useStartTime;
|
||
|
_useEndTime = useEndTime;
|
||
|
_finishTime = finishTime;
|
||
|
_type = type;
|
||
|
_source = source;
|
||
|
_takeType = takeType;
|
||
|
_style = style;
|
||
|
_state = state;
|
||
|
_canSettlement = canSettlement;
|
||
|
_canSubscribe = canSubscribe;
|
||
|
_isDelete = isDelete;
|
||
|
_tenantCode = tenantCode;
|
||
|
_ticketItemList = ticketItemList;
|
||
|
_userName = userName;
|
||
|
_userAvatar = userAvatar;
|
||
|
_isogenyNumber = isogenyNumber;
|
||
|
_businessStartDate = businessStartDate;
|
||
|
_businessEndDate = businessEndDate;
|
||
|
}
|
||
|
|
||
|
TicketDetails.fromJson(dynamic json) {
|
||
|
_id = json['id'];
|
||
|
_createTime = json['createTime'];
|
||
|
_createUser = json['createUser'];
|
||
|
_updateTime = json['updateTime'];
|
||
|
_updateUser = json['updateUser'];
|
||
|
_mid = json['mid'];
|
||
|
_storeId = json['storeId'];
|
||
|
_orderId = json['orderId'];
|
||
|
_orderProductId = json['orderProductId'];
|
||
|
_productId = json['productId'];
|
||
|
_productSkuId = json['productSkuId'];
|
||
|
_ticketWipedTimeTemplateId = json['ticketWipedTimeTemplateId'];
|
||
|
_amount = json['amount'];
|
||
|
_name = json['name'];
|
||
|
_code = json['code'];
|
||
|
_useStartTime = json['useStartTime'];
|
||
|
_useEndTime = json['useEndTime'];
|
||
|
_finishTime = json['finishTime'];
|
||
|
_type = json['type'];
|
||
|
_source = json['source'];
|
||
|
_takeType = json['takeType'];
|
||
|
_style = json['style'];
|
||
|
_state = json['state'];
|
||
|
_canSettlement = json['canSettlement'];
|
||
|
_canSubscribe = json['canSubscribe'];
|
||
|
_isDelete = json['isDelete'];
|
||
|
_tenantCode = json['tenantCode'];
|
||
|
if (json['ticketItemList'] != null) {
|
||
|
_ticketItemList = [];
|
||
|
json['ticketItemList'].forEach((v) {
|
||
|
_ticketItemList.add(TicketItemList.fromJson(v));
|
||
|
});
|
||
|
}
|
||
|
_userName = json['userName'];
|
||
|
_userAvatar = json['userAvatar'];
|
||
|
_isogenyNumber = json['isogenyNumber'];
|
||
|
_businessStartDate = json['businessStartDate'];
|
||
|
_businessEndDate = json['businessEndDate'];
|
||
|
}
|
||
|
String _id;
|
||
|
String _createTime;
|
||
|
String _createUser;
|
||
|
String _updateTime;
|
||
|
String _updateUser;
|
||
|
String _mid;
|
||
|
String _storeId;
|
||
|
String _orderId;
|
||
|
String _orderProductId;
|
||
|
String _productId;
|
||
|
String _productSkuId;
|
||
|
String _ticketWipedTimeTemplateId;
|
||
|
String _amount;
|
||
|
String _name;
|
||
|
String _code;
|
||
|
String _useStartTime;
|
||
|
String _useEndTime;
|
||
|
dynamic _finishTime;
|
||
|
String _type;
|
||
|
dynamic _source;
|
||
|
dynamic _takeType;
|
||
|
String _style;
|
||
|
num _state;
|
||
|
bool _canSettlement;
|
||
|
bool _canSubscribe;
|
||
|
num _isDelete;
|
||
|
String _tenantCode;
|
||
|
List<TicketItemList> _ticketItemList;
|
||
|
String _userName;
|
||
|
String _userAvatar;
|
||
|
num _isogenyNumber;
|
||
|
dynamic _businessStartDate;
|
||
|
dynamic _businessEndDate;
|
||
|
TicketDetails copyWith({ String id,
|
||
|
String createTime,
|
||
|
String createUser,
|
||
|
String updateTime,
|
||
|
String updateUser,
|
||
|
String mid,
|
||
|
String storeId,
|
||
|
String orderId,
|
||
|
String orderProductId,
|
||
|
String productId,
|
||
|
String productSkuId,
|
||
|
String ticketWipedTimeTemplateId,
|
||
|
String amount,
|
||
|
String name,
|
||
|
String code,
|
||
|
String useStartTime,
|
||
|
String useEndTime,
|
||
|
dynamic finishTime,
|
||
|
String type,
|
||
|
dynamic source,
|
||
|
dynamic takeType,
|
||
|
String style,
|
||
|
num state,
|
||
|
bool canSettlement,
|
||
|
bool canSubscribe,
|
||
|
num isDelete,
|
||
|
String tenantCode,
|
||
|
List<TicketItemList> ticketItemList,
|
||
|
String userName,
|
||
|
String userAvatar,
|
||
|
num isogenyNumber,
|
||
|
dynamic businessStartDate,
|
||
|
dynamic businessEndDate,
|
||
|
}) => TicketDetails( id: id ?? _id,
|
||
|
createTime: createTime ?? _createTime,
|
||
|
createUser: createUser ?? _createUser,
|
||
|
updateTime: updateTime ?? _updateTime,
|
||
|
updateUser: updateUser ?? _updateUser,
|
||
|
mid: mid ?? _mid,
|
||
|
storeId: storeId ?? _storeId,
|
||
|
orderId: orderId ?? _orderId,
|
||
|
orderProductId: orderProductId ?? _orderProductId,
|
||
|
productId: productId ?? _productId,
|
||
|
productSkuId: productSkuId ?? _productSkuId,
|
||
|
ticketWipedTimeTemplateId: ticketWipedTimeTemplateId ?? _ticketWipedTimeTemplateId,
|
||
|
amount: amount ?? _amount,
|
||
|
name: name ?? _name,
|
||
|
code: code ?? _code,
|
||
|
useStartTime: useStartTime ?? _useStartTime,
|
||
|
useEndTime: useEndTime ?? _useEndTime,
|
||
|
finishTime: finishTime ?? _finishTime,
|
||
|
type: type ?? _type,
|
||
|
source: source ?? _source,
|
||
|
takeType: takeType ?? _takeType,
|
||
|
style: style ?? _style,
|
||
|
state: state ?? _state,
|
||
|
canSettlement: canSettlement ?? _canSettlement,
|
||
|
canSubscribe: canSubscribe ?? _canSubscribe,
|
||
|
isDelete: isDelete ?? _isDelete,
|
||
|
tenantCode: tenantCode ?? _tenantCode,
|
||
|
ticketItemList: ticketItemList ?? _ticketItemList,
|
||
|
userName: userName ?? _userName,
|
||
|
userAvatar: userAvatar ?? _userAvatar,
|
||
|
isogenyNumber: isogenyNumber ?? _isogenyNumber,
|
||
|
businessStartDate: businessStartDate ?? _businessStartDate,
|
||
|
businessEndDate: businessEndDate ?? _businessEndDate,
|
||
|
);
|
||
|
String get id => _id;
|
||
|
String get createTime => _createTime;
|
||
|
String get createUser => _createUser;
|
||
|
String get updateTime => _updateTime;
|
||
|
String get updateUser => _updateUser;
|
||
|
String get mid => _mid;
|
||
|
String get storeId => _storeId;
|
||
|
String get orderId => _orderId;
|
||
|
String get orderProductId => _orderProductId;
|
||
|
String get productId => _productId;
|
||
|
String get productSkuId => _productSkuId;
|
||
|
String get ticketWipedTimeTemplateId => _ticketWipedTimeTemplateId;
|
||
|
String get amount => _amount;
|
||
|
String get name => _name;
|
||
|
String get code => _code;
|
||
|
String get useStartTime => _useStartTime;
|
||
|
String get useEndTime => _useEndTime;
|
||
|
dynamic get finishTime => _finishTime;
|
||
|
String get type => _type;
|
||
|
dynamic get source => _source;
|
||
|
dynamic get takeType => _takeType;
|
||
|
String get style => _style;
|
||
|
num get state => _state;
|
||
|
bool get canSettlement => _canSettlement;
|
||
|
bool get canSubscribe => _canSubscribe;
|
||
|
num get isDelete => _isDelete;
|
||
|
String get tenantCode => _tenantCode;
|
||
|
List<TicketItemList> get ticketItemList => _ticketItemList;
|
||
|
String get userName => _userName;
|
||
|
String get userAvatar => _userAvatar;
|
||
|
num get isogenyNumber => _isogenyNumber;
|
||
|
dynamic get businessStartDate => _businessStartDate;
|
||
|
dynamic get businessEndDate => _businessEndDate;
|
||
|
|
||
|
Map<String, dynamic> toJson() {
|
||
|
final map = <String, dynamic>{};
|
||
|
map['id'] = _id;
|
||
|
map['createTime'] = _createTime;
|
||
|
map['createUser'] = _createUser;
|
||
|
map['updateTime'] = _updateTime;
|
||
|
map['updateUser'] = _updateUser;
|
||
|
map['mid'] = _mid;
|
||
|
map['storeId'] = _storeId;
|
||
|
map['orderId'] = _orderId;
|
||
|
map['orderProductId'] = _orderProductId;
|
||
|
map['productId'] = _productId;
|
||
|
map['productSkuId'] = _productSkuId;
|
||
|
map['ticketWipedTimeTemplateId'] = _ticketWipedTimeTemplateId;
|
||
|
map['amount'] = _amount;
|
||
|
map['name'] = _name;
|
||
|
map['code'] = _code;
|
||
|
map['useStartTime'] = _useStartTime;
|
||
|
map['useEndTime'] = _useEndTime;
|
||
|
map['finishTime'] = _finishTime;
|
||
|
map['type'] = _type;
|
||
|
map['source'] = _source;
|
||
|
map['takeType'] = _takeType;
|
||
|
map['style'] = _style;
|
||
|
map['state'] = _state;
|
||
|
map['canSettlement'] = _canSettlement;
|
||
|
map['canSubscribe'] = _canSubscribe;
|
||
|
map['isDelete'] = _isDelete;
|
||
|
map['tenantCode'] = _tenantCode;
|
||
|
if (_ticketItemList != null) {
|
||
|
map['ticketItemList'] = _ticketItemList.map((v) => v.toJson()).toList();
|
||
|
}
|
||
|
map['userName'] = _userName;
|
||
|
map['userAvatar'] = _userAvatar;
|
||
|
map['isogenyNumber'] = _isogenyNumber;
|
||
|
map['businessStartDate'] = _businessStartDate;
|
||
|
map['businessEndDate'] = _businessEndDate;
|
||
|
return map;
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
/// id : "1720379729216798720"
|
||
|
/// createTime : "2023-11-03 17:57:45"
|
||
|
/// createUser : "0"
|
||
|
/// updateTime : "2023-11-03 17:57:45"
|
||
|
/// updateUser : "0"
|
||
|
/// ticketId : "1720379729141301248"
|
||
|
/// relationType : "PRODUCT"
|
||
|
/// relationId : "1645714128343400448"
|
||
|
/// name : "测试规格222"
|
||
|
/// showImage : ""
|
||
|
/// state : 1
|
||
|
/// finishTime : null
|
||
|
/// isDelete : 0
|
||
|
/// tenantCode : "1195"
|
||
|
/// canWipedNumber : 1
|
||
|
|
||
|
class TicketItemList {
|
||
|
TicketItemList({
|
||
|
String id,
|
||
|
String createTime,
|
||
|
String createUser,
|
||
|
String updateTime,
|
||
|
String updateUser,
|
||
|
String ticketId,
|
||
|
String relationType,
|
||
|
String relationId,
|
||
|
String name,
|
||
|
String showImage,
|
||
|
num state,
|
||
|
dynamic finishTime,
|
||
|
num isDelete,
|
||
|
String tenantCode,
|
||
|
num canWipedNumber,}){
|
||
|
_id = id;
|
||
|
_createTime = createTime;
|
||
|
_createUser = createUser;
|
||
|
_updateTime = updateTime;
|
||
|
_updateUser = updateUser;
|
||
|
_ticketId = ticketId;
|
||
|
_relationType = relationType;
|
||
|
_relationId = relationId;
|
||
|
_name = name;
|
||
|
_showImage = showImage;
|
||
|
_state = state;
|
||
|
_finishTime = finishTime;
|
||
|
_isDelete = isDelete;
|
||
|
_tenantCode = tenantCode;
|
||
|
_canWipedNumber = canWipedNumber;
|
||
|
}
|
||
|
|
||
|
TicketItemList.fromJson(dynamic json) {
|
||
|
_id = json['id'];
|
||
|
_createTime = json['createTime'];
|
||
|
_createUser = json['createUser'];
|
||
|
_updateTime = json['updateTime'];
|
||
|
_updateUser = json['updateUser'];
|
||
|
_ticketId = json['ticketId'];
|
||
|
_relationType = json['relationType'];
|
||
|
_relationId = json['relationId'];
|
||
|
_name = json['name'];
|
||
|
_showImage = json['showImage'];
|
||
|
_state = json['state'];
|
||
|
_finishTime = json['finishTime'];
|
||
|
_isDelete = json['isDelete'];
|
||
|
_tenantCode = json['tenantCode'];
|
||
|
_canWipedNumber = json['canWipedNumber'];
|
||
|
}
|
||
|
String _id;
|
||
|
String _createTime;
|
||
|
String _createUser;
|
||
|
String _updateTime;
|
||
|
String _updateUser;
|
||
|
String _ticketId;
|
||
|
String _relationType;
|
||
|
String _relationId;
|
||
|
String _name;
|
||
|
String _showImage;
|
||
|
num _state;
|
||
|
dynamic _finishTime;
|
||
|
num _isDelete;
|
||
|
String _tenantCode;
|
||
|
num _canWipedNumber;
|
||
|
TicketItemList copyWith({ String id,
|
||
|
String createTime,
|
||
|
String createUser,
|
||
|
String updateTime,
|
||
|
String updateUser,
|
||
|
String ticketId,
|
||
|
String relationType,
|
||
|
String relationId,
|
||
|
String name,
|
||
|
String showImage,
|
||
|
num state,
|
||
|
dynamic finishTime,
|
||
|
num isDelete,
|
||
|
String tenantCode,
|
||
|
num canWipedNumber,
|
||
|
}) => TicketItemList( id: id ?? _id,
|
||
|
createTime: createTime ?? _createTime,
|
||
|
createUser: createUser ?? _createUser,
|
||
|
updateTime: updateTime ?? _updateTime,
|
||
|
updateUser: updateUser ?? _updateUser,
|
||
|
ticketId: ticketId ?? _ticketId,
|
||
|
relationType: relationType ?? _relationType,
|
||
|
relationId: relationId ?? _relationId,
|
||
|
name: name ?? _name,
|
||
|
showImage: showImage ?? _showImage,
|
||
|
state: state ?? _state,
|
||
|
finishTime: finishTime ?? _finishTime,
|
||
|
isDelete: isDelete ?? _isDelete,
|
||
|
tenantCode: tenantCode ?? _tenantCode,
|
||
|
canWipedNumber: canWipedNumber ?? _canWipedNumber,
|
||
|
);
|
||
|
String get id => _id;
|
||
|
String get createTime => _createTime;
|
||
|
String get createUser => _createUser;
|
||
|
String get updateTime => _updateTime;
|
||
|
String get updateUser => _updateUser;
|
||
|
String get ticketId => _ticketId;
|
||
|
String get relationType => _relationType;
|
||
|
String get relationId => _relationId;
|
||
|
String get name => _name;
|
||
|
String get showImage => _showImage;
|
||
|
num get state => _state;
|
||
|
dynamic get finishTime => _finishTime;
|
||
|
num get isDelete => _isDelete;
|
||
|
String get tenantCode => _tenantCode;
|
||
|
num get canWipedNumber => _canWipedNumber;
|
||
|
bool _isSelect = false;
|
||
|
|
||
|
bool get isSelect => _isSelect;
|
||
|
|
||
|
set isSelect(bool value) {
|
||
|
_isSelect = value;
|
||
|
}
|
||
|
|
||
|
Map<String, dynamic> toJson() {
|
||
|
final map = <String, dynamic>{};
|
||
|
map['id'] = _id;
|
||
|
map['createTime'] = _createTime;
|
||
|
map['createUser'] = _createUser;
|
||
|
map['updateTime'] = _updateTime;
|
||
|
map['updateUser'] = _updateUser;
|
||
|
map['ticketId'] = _ticketId;
|
||
|
map['relationType'] = _relationType;
|
||
|
map['relationId'] = _relationId;
|
||
|
map['name'] = _name;
|
||
|
map['showImage'] = _showImage;
|
||
|
map['state'] = _state;
|
||
|
map['finishTime'] = _finishTime;
|
||
|
map['isDelete'] = _isDelete;
|
||
|
map['tenantCode'] = _tenantCode;
|
||
|
map['canWipedNumber'] = _canWipedNumber;
|
||
|
return map;
|
||
|
}
|
||
|
|
||
|
}
|