Blame view

lib/generated/json/read_content_entity.g.dart 2.79 KB
cb38bc90   liangchengyou   feat:视频跟读逻辑处理
1
2
3
4
  import 'package:wow_english/generated/json/base/json_convert_content.dart';
  import 'package:wow_english/models/read_content_entity.dart';
  
  ReadContentEntity $ReadContentEntityFromJson(Map<String, dynamic> json) {
4224b3f8   吴启风   feat:支付详情页ui
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
    final ReadContentEntity readContentEntity = ReadContentEntity();
    final String? createTime = jsonConvert.convert<String>(json['createTime']);
    if (createTime != null) {
      readContentEntity.createTime = createTime;
    }
    final String? deleted = jsonConvert.convert<String>(json['deleted']);
    if (deleted != null) {
      readContentEntity.deleted = deleted;
    }
    final String? id = jsonConvert.convert<String>(json['id']);
    if (id != null) {
      readContentEntity.id = id;
    }
    final String? modifyTime = jsonConvert.convert<String>(json['modifyTime']);
    if (modifyTime != null) {
      readContentEntity.modifyTime = modifyTime;
    }
    final int? sortOrder = jsonConvert.convert<int>(json['sortOrder']);
    if (sortOrder != null) {
      readContentEntity.sortOrder = sortOrder;
    }
    final int? status = jsonConvert.convert<int>(json['status']);
    if (status != null) {
      readContentEntity.status = status;
    }
    final int? videoFollowReadId = jsonConvert.convert<int>(
        json['videoFollowReadId']);
    if (videoFollowReadId != null) {
      readContentEntity.videoFollowReadId = videoFollowReadId;
    }
    final String? videoUrl = jsonConvert.convert<String>(json['videoUrl']);
    if (videoUrl != null) {
      readContentEntity.videoUrl = videoUrl;
    }
    final String? word = jsonConvert.convert<String>(json['word']);
    if (word != null) {
      readContentEntity.word = word;
    }
    return readContentEntity;
cb38bc90   liangchengyou   feat:视频跟读逻辑处理
44
45
46
  }
  
  Map<String, dynamic> $ReadContentEntityToJson(ReadContentEntity entity) {
4224b3f8   吴启风   feat:支付详情页ui
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
    final Map<String, dynamic> data = <String, dynamic>{};
    data['createTime'] = entity.createTime;
    data['deleted'] = entity.deleted;
    data['id'] = entity.id;
    data['modifyTime'] = entity.modifyTime;
    data['sortOrder'] = entity.sortOrder;
    data['status'] = entity.status;
    data['videoFollowReadId'] = entity.videoFollowReadId;
    data['videoUrl'] = entity.videoUrl;
    data['word'] = entity.word;
    return data;
  }
  
  extension ReadContentEntityExtension on ReadContentEntity {
    ReadContentEntity copyWith({
      String? createTime,
      String? deleted,
      String? id,
      String? modifyTime,
      int? sortOrder,
      int? status,
      int? videoFollowReadId,
      String? videoUrl,
      String? word,
    }) {
      return ReadContentEntity()
        ..createTime = createTime ?? this.createTime
        ..deleted = deleted ?? this.deleted
        ..id = id ?? this.id
        ..modifyTime = modifyTime ?? this.modifyTime
        ..sortOrder = sortOrder ?? this.sortOrder
        ..status = status ?? this.status
        ..videoFollowReadId = videoFollowReadId ?? this.videoFollowReadId
        ..videoUrl = videoUrl ?? this.videoUrl
        ..word = word ?? this.word;
    }
cb38bc90   liangchengyou   feat:视频跟读逻辑处理
83
  }