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