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