import 'package:json_annotation/json_annotation.dart'; part 'product_bean.g.dart'; @JsonSerializable() class ProductBean { String? ProductId; String? ProductName; int? ProductNum; int? ContinuedDay; double? Price; double? OriginalPrice; String? ImageUrl; ProductBean(this.ProductId, this.ProductName, this.ProductNum, this.ContinuedDay, this.Price, this.OriginalPrice, this.ImageUrl); factory ProductBean.fromJson(Map json) => _$ProductBeanFromJson(json); Map toJson() => _$ProductBeanToJson(this); }