Blame view

lib/generated/json/app_config_entity.g.dart 1.47 KB
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
    final String? safe = jsonConvert.convert<String>(json['safe']);
    if (safe != null) {
2a3621f8   吴启风   feat:课程层级调整(增加unit层)
8
      appConfigEntity.safe = safe;
28f20da9   吴启风   feat:针对apple审核对支付...
9
    }
6770c637   吴启风   feat: 动态配置客服联系方式
10
11
12
13
14
15
16
17
18
19
20
    final List<String>? customerMobileList =
        (json['customerMobileList'] as List<dynamic>?)
            ?.map((e) => jsonConvert.convert<String>(e) as String)
            .toList();
    if (customerMobileList != null) {
      appConfigEntity.customerMobileList = customerMobileList;
    }
    final String? customerQr = jsonConvert.convert<String>(json['customerQr']);
    if (customerQr != null) {
      appConfigEntity.customerQr = customerQr;
    }
2a3621f8   吴启风   feat:课程层级调整(增加unit层)
21
    return appConfigEntity;
28f20da9   吴启风   feat:针对apple审核对支付...
22
23
  }
  
2a3621f8   吴启风   feat:课程层级调整(增加unit层)
24
  Map<String, dynamic> $AppConfigEntityToJson(AppConfigEntity entity) {
28f20da9   吴启风   feat:针对apple审核对支付...
25
    final Map<String, dynamic> data = <String, dynamic>{};
28f20da9   吴启风   feat:针对apple审核对支付...
26
    data['safe'] = entity.safe;
6770c637   吴启风   feat: 动态配置客服联系方式
27
28
    data['customerMobileList'] = entity.customerMobileList;
    data['customerQr'] = entity.customerQr;
28f20da9   吴启风   feat:针对apple审核对支付...
29
30
31
    return data;
  }
  
2a3621f8   吴启风   feat:课程层级调整(增加unit层)
32
  extension AppConfigEntityExtension on AppConfigEntity {
cde7505e   吴启风   feat:应用内升级
33
    AppConfigEntity copyWith({
28f20da9   吴启风   feat:针对apple审核对支付...
34
      String? safe,
6770c637   吴启风   feat: 动态配置客服联系方式
35
36
      List<String>? customerMobileList,
      String? customerQr,
28f20da9   吴启风   feat:针对apple审核对支付...
37
    }) {
cde7505e   吴启风   feat:应用内升级
38
      return AppConfigEntity()
6770c637   吴启风   feat: 动态配置客服联系方式
39
40
41
        ..safe = safe ?? this.safe
        ..customerMobileList = customerMobileList ?? this.customerMobileList
        ..customerQr = customerQr ?? this.customerQr;
28f20da9   吴启风   feat:针对apple审核对支付...
42
43
    }
  }