// GENERATED CODE - DO NOT MODIFY BY HAND part of 'goods.dart'; // ************************************************************************** // JsonSerializableGenerator // ************************************************************************** Goods _$GoodsFromJson(Map json) { return Goods() ..canDelivery = json['canDelivery'] as bool ..canPick = json['canPick'] as bool ..categoryId = json['categoryId'] as String ..categoryName = json['categoryName'] as String ..couponId = json['couponId'] as String ..createTime = json['createTime'] as String ..createUser = json['createUser'] ..description = json['description'] as String ..id = json['id'] as String ..isDelete = json['isDelete'] ..isHot = json['isHot'] as bool ..mainImgPath = json['mainImgPath'] as String ..name = json['name'] as String ..price = json['price'] as String ..sales = json['sales'] ..sortOrder = json['sortOrder'] ..state = json['state'] ..stock = json['stock'] ..storeId = json['storeId'] as String ..updateTime = json['updateTime'] as String ..updateUser = json['updateUser'] as String ..viceImgPaths = (json['viceImgPaths'] as List)?.map((e) => e as String)?.toList() ..worth = json['worth'] as String; } Map _$GoodsToJson(Goods instance) => { 'canDelivery': instance.canDelivery, 'canPick': instance.canPick, 'categoryId': instance.categoryId, 'categoryName': instance.categoryName, 'couponId': instance.couponId, 'createTime': instance.createTime, 'createUser': instance.createUser, 'description': instance.description, 'id': instance.id, 'isDelete': instance.isDelete, 'isHot': instance.isHot, 'mainImgPath': instance.mainImgPath, 'name': instance.name, 'price': instance.price, 'sales': instance.sales, 'sortOrder': instance.sortOrder, 'state': instance.state, 'stock': instance.stock, 'storeId': instance.storeId, 'updateTime': instance.updateTime, 'updateUser': instance.updateUser, 'viceImgPaths': instance.viceImgPaths, 'worth': instance.worth, };