21 lines
560 B
Dart
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);
|
|
}
|