product.dart 475 B

12345678910111213141516171819202122
  1. import 'package:json_annotation/json_annotation.dart';
  2. part 'product.g.dart';
  3. @JsonSerializable()
  4. class Product {
  5. Product();
  6. num id;
  7. String image;
  8. String store_name;
  9. String cate_id;
  10. String price;
  11. String ot_price;
  12. String sales;
  13. String unit_name;
  14. List activity;
  15. String vip_price;
  16. factory Product.fromJson(Map<String,dynamic> json) => _$ProductFromJson(json);
  17. Map<String, dynamic> toJson() => _$ProductToJson(this);
  18. }