AI_Drawing/lib/bean/product_bean.dart
2024-06-03 15:30:15 +08:00

21 lines
560 B
Dart

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<String, dynamic> json) => _$ProductBeanFromJson(json);
Map<String, dynamic> toJson() => _$ProductBeanToJson(this);
}