product_entity.dart
844 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import 'package:wow_english/generated/json/base/json_field.dart';
import 'package:wow_english/generated/json/product_entity.g.dart';
import 'dart:convert';
export 'package:wow_english/generated/json/product_entity.g.dart';
@JsonSerializable()
class ProductEntity {
int? id;
String? name;
String? title;
/// 售卖价格
double? price;
/// 商品图片
String? picUrl;
/// 商品banner图片
String? bannerPicUrl;
/// 商品详情图片
String? detailPicUrl;
/// 销售类型
int? saleType;
/// 状态
int? status;
/// 序号
int? sortOrder;
/// 有效期类型
int? validityType;
ProductEntity();
factory ProductEntity.fromJson(Map<String, dynamic> json) => $ProductEntityFromJson(json);
Map<String, dynamic> toJson() => $ProductEntityToJson(this);
@override
String toString() {
return jsonEncode(this);
}
}