cartInfo.dart 549 B

123456789101112131415161718192021222324
  1. import 'package:json_annotation/json_annotation.dart';
  2. part 'cartInfo.g.dart';
  3. @JsonSerializable()
  4. class CartInfo {
  5. CartInfo();
  6. num id;
  7. String type;
  8. num product_id;
  9. String product_attr_unique;
  10. num cart_num;
  11. num combination_id;
  12. num seckill_id;
  13. num bargain_id;
  14. Map<String,dynamic> productInfo;
  15. num truePrice;
  16. num vip_truePrice;
  17. num trueStock;
  18. factory CartInfo.fromJson(Map<String,dynamic> json) => _$CartInfoFromJson(json);
  19. Map<String, dynamic> toJson() => _$CartInfoToJson(this);
  20. }