import 'package:json_annotation/json_annotation.dart'; part 'productInfo.g.dart'; @JsonSerializable() class ProductInfo { ProductInfo(); num product_id; String suk; num stock; num sales; String price; String image; String unique; String vip_price; String rebate; String vip_rebate; String bar_code; String ot_price; String weight; String volume; String brokerage; String brokerage_two; num type; num quota; num quota_show; String tb_price; factory ProductInfo.fromJson(Map json) => _$ProductInfoFromJson(json); Map toJson() => _$ProductInfoToJson(this); }