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.
 
 
 
 
 
 

42 lines
904 B

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