Blame view

lib/models/app_config_entity.dart 621 Bytes
28f20da9   吴启风   feat:针对apple审核对支付...
1
2
3
4
5
6
7
  import 'package:wow_english/generated/json/base/json_field.dart';
  import 'dart:convert';
  
  import '../generated/json/app_config_entity.g.dart';
  
  
  @JsonSerializable()
cde7505e   吴启风   feat:应用内升级
8
  class AppConfigEntity {
28f20da9   吴启风   feat:针对apple审核对支付...
9
  
28f20da9   吴启风   feat:针对apple审核对支付...
10
11
12
13
  	// 当前是否安全,safe-安全 otherwise-隐藏pay
  	String? safe;
  
  
cde7505e   吴启风   feat:应用内升级
14
  	AppConfigEntity();
28f20da9   吴启风   feat:针对apple审核对支付...
15
  
48a1b645   吴启风   feat:删除无效日志
16
  	factory AppConfigEntity.fromJson(Map<String, dynamic> json) => $AppConfigEntityFromJson(json);
28f20da9   吴启风   feat:针对apple审核对支付...
17
  
48a1b645   吴启风   feat:删除无效日志
18
  	Map<String, dynamic> toJson() => $AppConfigEntityToJson(this);
28f20da9   吴启风   feat:针对apple审核对支付...
19
20
21
22
23
24
25
26
27
28
29
  
  	@override
  	String toString() {
  		return jsonEncode(this);
  	}
  
  	// 是否审核中(null或者非"safe"即不安全)
  	bool isAppReviewing() {
  		return safe != "safe";
  	}
  }