// GENERATED CODE - DO NOT MODIFY BY HAND part of 'product_group.dart'; // ************************************************************************** // JsonSerializableGenerator // ************************************************************************** ProductGroup _$ProductGroupFromJson(Map 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? ..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); Map _$ProductGroupToJson(ProductGroup instance) => { '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 json) => ProductGroupProfitSharing() ..type = json['type'] as String? ..mchName = json['mchName'] as String? ..mchCode = json['mchCode'] as String? ..ratio = (json['ratio'] as num?)?.toInt(); Map _$ProductGroupProfitSharingToJson( ProductGroupProfitSharing instance) => { 'type': instance.type, 'mchName': instance.mchName, 'mchCode': instance.mchCode, 'ratio': instance.ratio, };