product.dart 375 B

1234567891011121314151617
  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 price;
  9. String vip_price;
  10. String store_name;
  11. factory Product.fromJson(Map<String,dynamic> json) => _$ProductFromJson(json);
  12. Map<String, dynamic> toJson() => _$ProductToJson(this);
  13. }