admin
2022-03-31 02f1c9fd2c594323f772f8e8f0f2187a285c1749
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
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
class VideoInfoModel {
  VideoInfoModel({
    String? id,
    String? picture,
    String? name,
    String? introduction,
    String? duration,
    String? mainActor,
    String? year,
    VideoType? videoType,
    int? thirdType,
    String? createtime,
    String? score,
    String? watchCount,
    String? share,
    bool? canSave,
    String? tag,
    List<VideoResource>? resourceList,
    String? playPicture,
    int? showType,
    String? vpicture,
    String? hpicture,
    int? commentCount,
    String? updatetime,
    String? area,
    String? nowNumber,
    String? finish,
    List<VideoDetailInfo>? videoDetailList,
  }) {
    _id = id;
    _picture = picture;
    _name = name;
    _introduction = introduction;
    _duration = duration;
    _mainActor = mainActor;
    _year = year;
    _videoType = videoType;
    _score = score;
    _watchCount = watchCount;
    _share = share;
    _canSave = canSave;
    _tag = tag;
    _resourceList = resourceList;
    _playPicture = playPicture;
    _showType = showType;
    _vpicture = vpicture;
    _hpicture = hpicture;
    _commentCount = commentCount;
    _updatetime = updatetime;
    _area = area;
    _nowNumber = nowNumber;
    _finish = finish;
    _videoDetailList = videoDetailList;
  }
 
  VideoInfoModel.fromJson(dynamic json) {
    _id = json['Id'];
    _picture = json['Picture'];
    _name = json['Name'];
    _introduction = json['Introduction'];
    _duration = json['Duration'];
    _mainActor = json['MainActor'];
    _year = json['Year'];
    _videoType = json['VideoType'] != null
        ? VideoType.fromJson(json['VideoType'])
        : null;
    _score = json['Score'];
    _watchCount = json['WatchCount'];
    _share = json['Share'];
    _canSave = json['CanSave'];
    _tag=json['Tag'];
    if (json['ResourceList'] != null) {
      _resourceList = [];
      json['ResourceList'].forEach((v) {
        _resourceList?.add(VideoResource.fromJson(v));
      });
    }
    _playPicture = json['PlayPicture'];
    _showType = json['ShowType'];
    _vpicture = json['Vpicture'];
    _hpicture = json['Hpicture'];
    _commentCount = json['CommentCount'];
    _updatetime = json['Updatetime'];
    _area = json['Area'];
    _nowNumber = json['NowNumber'];
    _finish = json['Finish'];
    if (json['VideoDetailList'] != null) {
      _videoDetailList = [];
      json['VideoDetailList'].forEach((v) {
        _videoDetailList?.add(VideoDetailInfo.fromJson(v));
      });
    }
  }
 
  String? _id;
  String? _picture;
  String? _name;
  String? _introduction;
  String? _duration;
  String? _mainActor;
  String? _year;
  VideoType? _videoType;
  String? _score;
  String? _watchCount;
  String? _share;
  bool? _canSave;
  String? _tag;
  List<VideoResource>? _resourceList;
  String? _playPicture;
  int? _showType;
  String? _vpicture;
  String? _hpicture;
  int? _commentCount;
  String? _updatetime;
  String? _area;
  String? _nowNumber;
  String? _finish;
  List<VideoDetailInfo>? _videoDetailList;
 
  String? get id => _id;
 
  String? get picture => _picture;
 
  String? get name => _name;
 
  String? get introduction => _introduction;
 
  String? get duration => _duration;
 
  String? get mainActor => _mainActor;
 
  String? get year => _year;
 
  VideoType? get videoType => _videoType;
 
 
 
  String? get score => _score;
 
  String? get watchCount => _watchCount;
 
  String? get share => _share;
 
  bool? get canSave => _canSave;
 
  String? get tag => _tag;
 
  List<VideoResource>? get resourceList => _resourceList;
 
  String? get playPicture => _playPicture;
 
  int? get showType => _showType;
 
  String? get vpicture => _vpicture;
 
  String? get hpicture => _hpicture;
 
  int? get commentCount => _commentCount;
 
  String? get updatetime => _updatetime;
 
  String? get area => _area;
 
  String? get nowNumber => _nowNumber;
 
  String? get finish => _finish;
 
  List<VideoDetailInfo>? get videoDetailList => _videoDetailList;
 
  set videoDetailList(value) {
    _videoDetailList = value;
  }
 
  set tag(value) {
    _tag = value;
  }
 
  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['Id'] = _id;
    map['Picture'] = _picture;
    map['Name'] = _name;
    map['Introduction'] = _introduction;
    map['Duration'] = _duration;
    map['MainActor'] = _mainActor;
    map['Year'] = _year;
    if (_videoType != null) {
      map['VideoType'] = _videoType?.toJson();
    }
    map['Score'] = _score;
    map['WatchCount'] = _watchCount;
    map['Share'] = _share;
    map['CanSave'] = _canSave;
    map['Tag'] = _tag;
    if (_resourceList != null) {
      map['ResourceList'] = _resourceList?.map((v) => v.toJson()).toList();
    }
    map['PlayPicture'] = _playPicture;
    map['ShowType'] = _showType;
    map['Vpicture'] = _vpicture;
    map['Hpicture'] = _hpicture;
    map['CommentCount'] = _commentCount;
    map['Updatetime'] = _updatetime;
    map['Area'] = _area;
    map['NowNumber'] = _nowNumber;
    map['Finish'] = _finish;
    if (_videoDetailList != null) {
      map['VideoDetailList'] =
          _videoDetailList?.map((v) => v.toJson()).toList();
    }
    return map;
  }
}
 
/// Introduction : "告密者父女赴神都告密在南市遇害,内卫月华君武思月抢先一步带走嫌疑凶犯,大理寺卿高升却以刺客刺杀长乐郡主为由将其从内卫抢回。\n高秉烛潜入大理寺狱冒充春秋道道众套话凶犯,得知“告密者父女已死,神道大业将成”。\n高秉烛从告密者尸身上看到熟悉的十字贯穿伤,且找到一张公验,表明告密者自奁山而来,想到告密者在南市与百里弘毅见面的一幕,高秉烛怀疑此事和百里弘毅有关。\n内卫奉御郎武攸决授意思月与大理寺联手调查告密者被杀一案,人犯在狱中重伤而亡,大理寺亭长裴谏欲对出入过监牢的人一一审问,此时,高秉烛站出,表示人犯是自己所杀。\n"
/// Name : "风起洛阳第1集"
/// Type : "album"
/// Id : "2152712324153900"
/// WatchCount : 0
/// Tag : "1"
 
class VideoDetailInfo {
  VideoDetailInfo({
    String? introduction,
    String? name,
    String? type,
    String? id,
    int? watchCount,
    String? tag,
  }) {
    _introduction = introduction;
    _name = name;
    _type = type;
    _id = id;
    _watchCount = watchCount;
    _tag = tag;
  }
 
  VideoDetailInfo.fromJson(dynamic json) {
    _introduction = json['Introduction'];
    _name = json['Name'];
    _type = json['Type'];
    _id = json['Id'];
    _watchCount = json['WatchCount'];
    _tag = json['Tag'];
  }
 
  String? _introduction;
  String? _name;
  String? _type;
  String? _id;
  int? _watchCount;
  String? _tag;
 
  String? get introduction => _introduction;
 
  String? get name => _name;
 
  String? get type => _type;
 
  String? get id => _id;
 
  int? get watchCount => _watchCount;
 
  String? get tag => _tag;
 
  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['Introduction'] = _introduction;
    map['Name'] = _name;
    map['Type'] = _type;
    map['Id'] = _id;
    map['WatchCount'] = _watchCount;
    map['Tag'] = _tag;
    return map;
  }
}
 
/// Id : "22"
/// Name : "爱奇艺2"
/// Createtime : "1464659723000"
/// Picture : "http://buwan-1255749512.cos.ap-guangzhou.myqcloud.com/resource/source/iqiyi.png"
/// Checked : true
 
class VideoResource {
  VideoResource({
    String? id,
    String? name,
    String? createtime,
    String? picture,
    bool? checked,
  }) {
    _id = id;
    _name = name;
    _createtime = createtime;
    _picture = picture;
    _checked = checked;
  }
 
  VideoResource.fromJson(dynamic json) {
    _id = json['Id'];
    _name = json['Name'];
    _createtime = json['Createtime'];
    _picture = json['Picture'];
    _checked = json['Checked'];
  }
 
  String? _id;
  String? _name;
  String? _createtime;
  String? _picture;
  bool? _checked;
 
  String? get id => _id;
 
  String? get name => _name;
 
  String? get createtime => _createtime;
 
  String? get picture => _picture;
 
  bool? get checked => _checked;
 
  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['Id'] = _id;
    map['Name'] = _name;
    map['Createtime'] = _createtime;
    map['Picture'] = _picture;
    map['Checked'] = _checked;
    return map;
  }
}
 
/// Id : 150
/// Name : "电视剧"
/// Icon : "https://hbimg.huabanimg.com/40b7d467ac5bd3abdedb70aa8d29dbc144d27fc51876-hvReYJ_fw658/format/webp"
/// Createtime : "0"
 
class VideoType {
  VideoType({
    int? id,
    String? name,
    String? icon,
    String? createtime,
  }) {
    _id = id;
    _name = name;
    _icon = icon;
    _createtime = createtime;
  }
 
  VideoType.fromJson(dynamic json) {
    _id = json['Id'];
    _name = json['Name'];
    _icon = json['Icon'];
    _createtime = json['Createtime'];
  }
 
  int? _id;
  String? _name;
  String? _icon;
  String? _createtime;
 
  int? get id => _id;
 
  String? get name => _name;
 
  String? get icon => _icon;
 
  String? get createtime => _createtime;
 
  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['Id'] = _id;
    map['Name'] = _name;
    map['Icon'] = _icon;
    map['Createtime'] = _createtime;
    return map;
  }
}