import 'package:huixiang/generated/json/base/json_field.dart'; import 'package:huixiang/generated/json/product.g.dart'; import 'dart:convert'; export 'package:huixiang/generated/json/product.g.dart'; @JsonSerializable() class Product { String? id; String? createTime; String? createUser; String? updateTime; String? updateUser; dynamic tenantCode; String? storeId; String? orderId; String? productId; String? productName; String? skuId; String? skuNameStr; String? skuImg; int? buyNum; int? refundNum; double? weight; String? applyPrice; String? sellPrice; String? postPay; int? isDelete; String? discountAmount; int? discountPercent; bool? status; int? batch; Product( {this.id, this.createTime, this.createUser, this.updateTime, this.updateUser, this.tenantCode, this.storeId, this.orderId, this.productId, this.productName, this.skuId, this.skuNameStr, this.skuImg, this.buyNum, this.refundNum, this.weight, this.applyPrice, this.sellPrice, this.postPay, this.isDelete, this.discountAmount, this.discountPercent, this.status, this.batch}); factory Product.fromJson(Map json) => $ProductFromJson(json); Map toJson() => $ProductToJson(this); }