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.
 
 
 
 
 
 

54 lines
1.3 KiB

import 'package:huixiang/generated/json/base/json_field.dart';
import 'package:huixiang/generated/json/product_group.g.dart';
import 'dart:convert';
export 'package:huixiang/generated/json/product_group.g.dart';
@JsonSerializable()
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);
@override
String toString() {
return jsonEncode(this);
}
}
@JsonSerializable()
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);
@override
String toString() {
return jsonEncode(this);
}
}