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? viceImgPaths = []; Goods(); factory Goods.fromJson(Map json) => _$GoodsFromJson(json); Map toJson() => _$GoodsToJson(this); }