Blame view

lib/models/app_config_entity.dart 1022 Bytes
28f20da9   吴启风   feat:针对apple审核对支付...
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
44
45
46
47
48
49
50
51
  import 'package:wow_english/generated/json/base/json_field.dart';
  import 'dart:convert';
  
  import '../generated/json/app_config_entity.g.dart';
  
  
  @JsonSerializable()
  class AppConfigEntityEntity {
  
  	// 安卓是否强制更新
  	bool? androidForceUpdate;
  
  	// 安卓是否推荐更新
  	bool? androidRecommendUpdate;
  
  	// 安卓更新包地址
  	String? androidUpdatePackageUrl;
  
  	// 安卓当前版本号
  	int? androidVersion;
  
  	bool? iosForceUpdate;
  
  	bool? iosRecommendUpdate;
  
  	// ios版本
  	int? iosVersion;
  
  	// 购前须知图片
  	String? noticeBeforePurchaseUrl;
  
  	// 当前是否安全,safe-安全 otherwise-隐藏pay
  	String? safe;
  
  
  	AppConfigEntityEntity();
  
  	factory AppConfigEntityEntity.fromJson(Map<String, dynamic> json) => $AppConfigEntityEntityFromJson(json);
  
  	Map<String, dynamic> toJson() => $AppConfigEntityEntityToJson(this);
  
  	@override
  	String toString() {
  		return jsonEncode(this);
  	}
  
  	// 是否审核中(null或者非"safe"即不安全)
  	bool isAppReviewing() {
  		return safe != "safe";
  	}
  }