import 'package:json_annotation/json_annotation.dart'; part 'product.g.dart'; @JsonSerializable(explicitToJson: true) 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); }