Blame view

lib/models/product_entity.dart 844 Bytes
4224b3f8   吴启风   feat:支付详情页ui
1
2
3
4
5
6
7
  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 {
07599105   吴启风   feat:商品列表请求&路由
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
  
  	int? id;
  
  	String? name;
  
  	String? title;
  
  	/// 售卖价格
  	double? price;
  	/// 商品图片
  	String? picUrl;
  	/// 商品banner图片
  	String? bannerPicUrl;
  	/// 商品详情图片
  	String? detailPicUrl;
  	/// 销售类型
  	int? saleType;
  	/// 状态
  	int? status;
  	/// 序号
  	int? sortOrder;
  	/// 有效期类型
  	int? validityType;
  
4224b3f8   吴启风   feat:支付详情页ui
32
33
34
35
36
37
38
39
40
41
42
43
  
  	ProductEntity();
  
  	factory ProductEntity.fromJson(Map<String, dynamic> json) => $ProductEntityFromJson(json);
  
  	Map<String, dynamic> toJson() => $ProductEntityToJson(this);
  
  	@override
  	String toString() {
  		return jsonEncode(this);
  	}
  }