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.
66 lines
2.5 KiB
66 lines
2.5 KiB
1 month ago
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||
|
|
||
|
part of 'product_group.dart';
|
||
|
|
||
|
// **************************************************************************
|
||
|
// JsonSerializableGenerator
|
||
|
// **************************************************************************
|
||
|
|
||
|
ProductGroup _$ProductGroupFromJson(Map<String, dynamic> json) => ProductGroup()
|
||
|
..id = json['id'] as String?
|
||
|
..createTime = json['createTime'] as String?
|
||
|
..createUser = json['createUser'] as String?
|
||
|
..updateTime = json['updateTime'] as String?
|
||
|
..updateUser = json['updateUser'] as String?
|
||
|
..storeId = json['storeId'] as String?
|
||
|
..groupName = json['groupName'] as String?
|
||
|
..groupImg = json['groupImg'] as String?
|
||
|
..sort = (json['sort'] as num?)?.toInt()
|
||
|
..kitchenGroup = (json['kitchenGroup'] as num?)?.toInt()
|
||
|
..printerId = json['printerId'] as List<dynamic>?
|
||
|
..attachPrinterIds = json['attachPrinterIds']
|
||
|
..isDelete = (json['isDelete'] as num?)?.toInt()
|
||
|
..isCharge = (json['isCharge'] as num?)?.toInt()
|
||
|
..useVipDiscount = json['useVipDiscount']
|
||
|
..profitSharing = json['profitSharing'] == null
|
||
|
? null
|
||
|
: ProductGroupProfitSharing.fromJson(
|
||
|
json['profitSharing'] as Map<String, dynamic>);
|
||
|
|
||
|
Map<String, dynamic> _$ProductGroupToJson(ProductGroup instance) =>
|
||
|
<String, dynamic>{
|
||
|
'id': instance.id,
|
||
|
'createTime': instance.createTime,
|
||
|
'createUser': instance.createUser,
|
||
|
'updateTime': instance.updateTime,
|
||
|
'updateUser': instance.updateUser,
|
||
|
'storeId': instance.storeId,
|
||
|
'groupName': instance.groupName,
|
||
|
'groupImg': instance.groupImg,
|
||
|
'sort': instance.sort,
|
||
|
'kitchenGroup': instance.kitchenGroup,
|
||
|
'printerId': instance.printerId,
|
||
|
'attachPrinterIds': instance.attachPrinterIds,
|
||
|
'isDelete': instance.isDelete,
|
||
|
'isCharge': instance.isCharge,
|
||
|
'useVipDiscount': instance.useVipDiscount,
|
||
|
'profitSharing': instance.profitSharing?.toJson(),
|
||
|
};
|
||
|
|
||
|
ProductGroupProfitSharing _$ProductGroupProfitSharingFromJson(
|
||
|
Map<String, dynamic> json) =>
|
||
|
ProductGroupProfitSharing()
|
||
|
..type = json['type'] as String?
|
||
|
..mchName = json['mchName'] as String?
|
||
|
..mchCode = json['mchCode'] as String?
|
||
|
..ratio = (json['ratio'] as num?)?.toInt();
|
||
|
|
||
|
Map<String, dynamic> _$ProductGroupProfitSharingToJson(
|
||
|
ProductGroupProfitSharing instance) =>
|
||
|
<String, dynamic>{
|
||
|
'type': instance.type,
|
||
|
'mchName': instance.mchName,
|
||
|
'mchCode': instance.mchCode,
|
||
|
'ratio': instance.ratio,
|
||
|
};
|