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.
 
 
 
 
 
 

37 lines
658 B

import 'package:json_annotation/json_annotation.dart';
part 'goods.g.dart';
@JsonSerializable()
class Goods {
Goods();
bool canDelivery;
bool canPick;
int categoryId;
String categoryName;
int couponId;
String createTime;
int createUser;
String description;
int id;
int isDelete;
bool isHot;
String mainImgPath;
String name;
int price;
int sales;
int sortOrder;
int state;
int stock;
int storeId;
String updateTime;
int updateUser;
List<String> viceImgPaths;
int worth;
factory Goods.fromJson(Map<String, dynamic> json) => _$GoodsFromJson(json);
Map<String, dynamic> toJson() => _$GoodsToJson(this);
}