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? printerId = []; dynamic attachPrinterIds; int? isDelete = 0; int? isCharge = 0; dynamic useVipDiscount; ProductGroupProfitSharing? profitSharing; ProductGroup(); factory ProductGroup.fromJson(Map json) => _$ProductGroupFromJson(json); Map toJson() => _$ProductGroupToJson(this); } @JsonSerializable(explicitToJson: true) class ProductGroupProfitSharing { String? type = ''; String? mchName = ''; String? mchCode = ''; int? ratio = 0; ProductGroupProfitSharing(); factory ProductGroupProfitSharing.fromJson(Map json) => _$ProductGroupProfitSharingFromJson(json); Map toJson() => _$ProductGroupProfitSharingToJson(this); }