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
import '../../model/video/video_model.dart';
 
/// Id : "728"
/// Picture : "https://hbimg.huabanimg.com/e96071279c6ee30f7e9ab54eac68738db2c0d77d1a123-DqVlxn_fw658/format/webp"
/// Createtime : "1629191385368"
/// Video : {"Id":"257727","Tag":"16集全","Createtime":1440729119000,"Picture":"http://pic6.iqiyipic.com/image/20200609/ac/2b/a_100014741_m_601_m17.jpg","Name":"太阳的后裔","Introduction":"","Duration":"3006","MainActor":"","Year":"2016","Score":"9.3","Share":"0","WatchCount":"137468","NowNumber":"1","Finish":"1","Area":"韩国","Vpicture":"http://pic6.iqiyipic.com/image/20200609/ac/2b/a_100014741_m_601_m17_260_360.jpg","Hpicture":"http://pic6.iqiyipic.com/image/20200609/ac/2b/a_100014741_m_601_m17_480_270.jpg","CanSave":false,"VideoType":{"Id":150,"Name":"电视剧","Icon":"https://hbimg.huabanimg.com/40b7d467ac5bd3abdedb70aa8d29dbc144d27fc51876-hvReYJ_fw658/format/webp","Createtime":"0"},"CommentCount":0,"ThirdType":"0","ShowType":0,"Free":0,"Definition":0,"VideoDetailList":[]}
/// Introduction : "太阳的后裔"
/// LinkType : 1
 
class HomeAdModel {
  HomeAdModel(
      {String? id,
      String? picture,
      String? createtime,
      VideoInfoModel? video,
      String? introduction,
      int? linkType,
      String? params}) {
    _id = id;
    _picture = picture;
    _createtime = createtime;
    _video = video;
    _introduction = introduction;
    _linkType = linkType;
    _params = params;
  }
 
  HomeAdModel.fromJson(dynamic json) {
    _id = json['Id'];
    _picture = json['Picture'];
    _createtime = json['Createtime'];
    _video =
        json['Video'] != null ? VideoInfoModel.fromJson(json['Video']) : null;
    _introduction = json['Introduction'];
    _linkType = json['LinkType'];
    _params = json['Params'];
  }
 
  String? _id;
  String? _picture;
  String? _createtime;
  VideoInfoModel? _video;
  String? _introduction;
  int? _linkType;
  String? _params;
 
  String? get id => _id;
 
  String? get picture => _picture;
 
  String? get createtime => _createtime;
 
  VideoInfoModel? get video => _video;
 
  String? get introduction => _introduction;
 
  int? get linkType => _linkType;
 
  String? get params => _params;
 
  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['Id'] = _id;
    map['Picture'] = _picture;
    map['Createtime'] = _createtime;
    if (_video != null) {
      map['Video'] = _video?.toJson();
    }
    map['Introduction'] = _introduction;
    map['LinkType'] = _linkType;
    map['Params'] = _params;
    return map;
  }
}