| 28f20da9  吴启风
 
feat:针对apple审核对支付... | 1
2
3 |   import 'package:wow_english/generated/json/base/json_convert_content.dart';
  import 'package:wow_english/models/app_config_entity.dart';
  
 | 
| 2a3621f8  吴启风
 
feat:课程层级调整(增加unit层) | 4
5 |   AppConfigEntity $AppConfigEntityFromJson(Map<String, dynamic> json) {
    final AppConfigEntity appConfigEntity = AppConfigEntity();
 | 
| 28f20da9  吴启风
 
feat:针对apple审核对支付... | 6
7
8 |     final bool? androidForceUpdate = jsonConvert.convert<bool>(
        json['androidForceUpdate']);
    if (androidForceUpdate != null) {
 | 
| 2a3621f8  吴启风
 
feat:课程层级调整(增加unit层) | 9 |       appConfigEntity.androidForceUpdate = androidForceUpdate;
 | 
| 28f20da9  吴启风
 
feat:针对apple审核对支付... | 10
11
12
13 |     }
    final bool? androidRecommendUpdate = jsonConvert.convert<bool>(
        json['androidRecommendUpdate']);
    if (androidRecommendUpdate != null) {
 | 
| 2a3621f8  吴启风
 
feat:课程层级调整(增加unit层) | 14 |       appConfigEntity.androidRecommendUpdate = androidRecommendUpdate;
 | 
| 28f20da9  吴启风
 
feat:针对apple审核对支付... | 15
16
17
18 |     }
    final String? androidUpdatePackageUrl = jsonConvert.convert<String>(
        json['androidUpdatePackageUrl']);
    if (androidUpdatePackageUrl != null) {
 | 
| 2a3621f8  吴启风
 
feat:课程层级调整(增加unit层) | 19 |       appConfigEntity.androidUpdatePackageUrl = androidUpdatePackageUrl;
 | 
| 28f20da9  吴启风
 
feat:针对apple审核对支付... | 20
21
22 |     }
    final int? androidVersion = jsonConvert.convert<int>(json['androidVersion']);
    if (androidVersion != null) {
 | 
| 2a3621f8  吴启风
 
feat:课程层级调整(增加unit层) | 23 |       appConfigEntity.androidVersion = androidVersion;
 | 
| 28f20da9  吴启风
 
feat:针对apple审核对支付... | 24
25
26
27 |     }
    final bool? iosForceUpdate = jsonConvert.convert<bool>(
        json['iosForceUpdate']);
    if (iosForceUpdate != null) {
 | 
| 2a3621f8  吴启风
 
feat:课程层级调整(增加unit层) | 28 |       appConfigEntity.iosForceUpdate = iosForceUpdate;
 | 
| 28f20da9  吴启风
 
feat:针对apple审核对支付... | 29
30
31
32 |     }
    final bool? iosRecommendUpdate = jsonConvert.convert<bool>(
        json['iosRecommendUpdate']);
    if (iosRecommendUpdate != null) {
 | 
| 2a3621f8  吴启风
 
feat:课程层级调整(增加unit层) | 33 |       appConfigEntity.iosRecommendUpdate = iosRecommendUpdate;
 | 
| 28f20da9  吴启风
 
feat:针对apple审核对支付... | 34
35
36 |     }
    final int? iosVersion = jsonConvert.convert<int>(json['iosVersion']);
    if (iosVersion != null) {
 | 
| 2a3621f8  吴启风
 
feat:课程层级调整(增加unit层) | 37
38
39
40
41
42 |       appConfigEntity.iosVersion = iosVersion;
    }
    final String? updatePackageDescription = jsonConvert.convert<String>(
        json['updatePackageDescription']);
    if (updatePackageDescription != null) {
      appConfigEntity.updatePackageDescription = updatePackageDescription;
 | 
| 28f20da9  吴启风
 
feat:针对apple审核对支付... | 43
44
45
46 |     }
    final String? noticeBeforePurchaseUrl = jsonConvert.convert<String>(
        json['noticeBeforePurchaseUrl']);
    if (noticeBeforePurchaseUrl != null) {
 | 
| 2a3621f8  吴启风
 
feat:课程层级调整(增加unit层) | 47 |       appConfigEntity.noticeBeforePurchaseUrl = noticeBeforePurchaseUrl;
 | 
| 28f20da9  吴启风
 
feat:针对apple审核对支付... | 48
49
50 |     }
    final String? safe = jsonConvert.convert<String>(json['safe']);
    if (safe != null) {
 | 
| 2a3621f8  吴启风
 
feat:课程层级调整(增加unit层) | 51 |       appConfigEntity.safe = safe;
 | 
| 28f20da9  吴启风
 
feat:针对apple审核对支付... | 52 |     }
 | 
| 2a3621f8  吴启风
 
feat:课程层级调整(增加unit层) | 53 |     return appConfigEntity;
 | 
| 28f20da9  吴启风
 
feat:针对apple审核对支付... | 54
55 |   }
  
 | 
| 2a3621f8  吴启风
 
feat:课程层级调整(增加unit层) | 56 |   Map<String, dynamic> $AppConfigEntityToJson(AppConfigEntity entity) {
 | 
| 28f20da9  吴启风
 
feat:针对apple审核对支付... | 57
58
59
60
61
62
63
64 |     final Map<String, dynamic> data = <String, dynamic>{};
    data['androidForceUpdate'] = entity.androidForceUpdate;
    data['androidRecommendUpdate'] = entity.androidRecommendUpdate;
    data['androidUpdatePackageUrl'] = entity.androidUpdatePackageUrl;
    data['androidVersion'] = entity.androidVersion;
    data['iosForceUpdate'] = entity.iosForceUpdate;
    data['iosRecommendUpdate'] = entity.iosRecommendUpdate;
    data['iosVersion'] = entity.iosVersion;
 | 
| 2a3621f8  吴启风
 
feat:课程层级调整(增加unit层) | 65 |     data['updatePackageDescription'] = entity.updatePackageDescription;
 | 
| 28f20da9  吴启风
 
feat:针对apple审核对支付... | 66
67
68
69
70 |     data['noticeBeforePurchaseUrl'] = entity.noticeBeforePurchaseUrl;
    data['safe'] = entity.safe;
    return data;
  }
  
 | 
| 2a3621f8  吴启风
 
feat:课程层级调整(增加unit层) | 71 |   extension AppConfigEntityExtension on AppConfigEntity {
 | 
| cde7505e  吴启风
 
feat:应用内升级 | 72 |     AppConfigEntity copyWith({
 | 
| 28f20da9  吴启风
 
feat:针对apple审核对支付... | 73
74
75
76
77
78
79 |       bool? androidForceUpdate,
      bool? androidRecommendUpdate,
      String? androidUpdatePackageUrl,
      int? androidVersion,
      bool? iosForceUpdate,
      bool? iosRecommendUpdate,
      int? iosVersion,
 | 
| 2a3621f8  吴启风
 
feat:课程层级调整(增加unit层) | 80 |       String? updatePackageDescription,
 | 
| 28f20da9  吴启风
 
feat:针对apple审核对支付... | 81
82
83 |       String? noticeBeforePurchaseUrl,
      String? safe,
    }) {
 | 
| cde7505e  吴启风
 
feat:应用内升级 | 84 |       return AppConfigEntity()
 | 
| 28f20da9  吴启风
 
feat:针对apple审核对支付... | 85
86
87
88
89
90
91
92
93 |         ..androidForceUpdate = androidForceUpdate ?? this.androidForceUpdate
        ..androidRecommendUpdate = androidRecommendUpdate ??
            this.androidRecommendUpdate
        ..androidUpdatePackageUrl = androidUpdatePackageUrl ??
            this.androidUpdatePackageUrl
        ..androidVersion = androidVersion ?? this.androidVersion
        ..iosForceUpdate = iosForceUpdate ?? this.iosForceUpdate
        ..iosRecommendUpdate = iosRecommendUpdate ?? this.iosRecommendUpdate
        ..iosVersion = iosVersion ?? this.iosVersion
 | 
| 2a3621f8  吴启风
 
feat:课程层级调整(增加unit层) | 94
95 |         ..updatePackageDescription = updatePackageDescription ??
            this.updatePackageDescription
 | 
| 28f20da9  吴启风
 
feat:针对apple审核对支付... | 96
97
98
99
100 |         ..noticeBeforePurchaseUrl = noticeBeforePurchaseUrl ??
            this.noticeBeforePurchaseUrl
        ..safe = safe ?? this.safe;
    }
  }
 |