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.
 
 
 
 
 
 

48 lines
1.1 KiB

import 'package:json_annotation/json_annotation.dart';
part 'product_group.g.dart';
@JsonSerializable(explicitToJson: true)
class ProductGroup {
String? id = '';
String? createTime = '';
String? createUser = '';
String? updateTime = '';
String? updateUser = '';
String? storeId = '';
String? groupName = '';
String? groupImg = '';
int? sort = 0;
int? kitchenGroup = 0;
List<dynamic>? printerId = [];
dynamic attachPrinterIds;
int? isDelete = 0;
int? isCharge = 0;
dynamic useVipDiscount;
ProductGroupProfitSharing? profitSharing;
ProductGroup();
factory ProductGroup.fromJson(Map<String, dynamic> json) => _$ProductGroupFromJson(json);
Map<String, dynamic> toJson() => _$ProductGroupToJson(this);
}
@JsonSerializable(explicitToJson: true)
class ProductGroupProfitSharing {
String? type = '';
String? mchName = '';
String? mchCode = '';
int? ratio = 0;
ProductGroupProfitSharing();
factory ProductGroupProfitSharing.fromJson(Map<String, dynamic> json) => _$ProductGroupProfitSharingFromJson(json);
Map<String, dynamic> toJson() => _$ProductGroupProfitSharingToJson(this);
}