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;
|
}
|
}
|