import 'package:huixiang/generated/json/base/json_field.dart'; import 'package:huixiang/generated/json/goods.g.dart'; import 'dart:convert'; export 'package:huixiang/generated/json/goods.g.dart'; @JsonSerializable() 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); @override String toString() { return jsonEncode(this); } }