mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-31 16:18:22 +08:00
@@ -16,15 +16,15 @@ class PlayInfoData {
|
||||
});
|
||||
|
||||
factory PlayInfoData.fromJson(Map<String, dynamic> json) => PlayInfoData(
|
||||
lastPlayCid: json['last_play_cid'] as int?,
|
||||
subtitle: json['subtitle'] == null
|
||||
? null
|
||||
: SubtitleInfo.fromJson(json['subtitle'] as Map<String, dynamic>),
|
||||
viewPoints: (json['view_points'] as List?)
|
||||
?.map((e) => ViewPoint.fromJson(e))
|
||||
.toList(),
|
||||
interaction: json["interaction"] == null
|
||||
? null
|
||||
: Interaction.fromJson(json["interaction"]),
|
||||
);
|
||||
lastPlayCid: json['last_play_cid'] as int?,
|
||||
subtitle: json['subtitle'] == null
|
||||
? null
|
||||
: SubtitleInfo.fromJson(json['subtitle'] as Map<String, dynamic>),
|
||||
viewPoints: (json['view_points'] as List?)
|
||||
?.map((e) => ViewPoint.fromJson(e))
|
||||
.toList(),
|
||||
interaction: json["interaction"] == null
|
||||
? null
|
||||
: Interaction.fromJson(json["interaction"]),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -8,11 +8,11 @@ class Interaction {
|
||||
});
|
||||
|
||||
factory Interaction.fromJson(Map<String, dynamic> json) => Interaction(
|
||||
historyNode: json["history_node"] == null
|
||||
? null
|
||||
: HistoryNode.fromJson(json["history_node"]),
|
||||
graphVersion: json["graph_version"],
|
||||
);
|
||||
historyNode: json["history_node"] == null
|
||||
? null
|
||||
: HistoryNode.fromJson(json["history_node"]),
|
||||
graphVersion: json["graph_version"],
|
||||
);
|
||||
}
|
||||
|
||||
class HistoryNode {
|
||||
@@ -27,8 +27,8 @@ class HistoryNode {
|
||||
});
|
||||
|
||||
factory HistoryNode.fromJson(Map<String, dynamic> json) => HistoryNode(
|
||||
nodeId: json["node_id"],
|
||||
title: json["title"],
|
||||
cid: json["cid"],
|
||||
);
|
||||
nodeId: json["node_id"],
|
||||
title: json["title"],
|
||||
cid: json["cid"],
|
||||
);
|
||||
}
|
||||
|
||||
@@ -12,9 +12,9 @@ class Subtitle {
|
||||
});
|
||||
|
||||
factory Subtitle.fromJson(Map<String, dynamic> json) => Subtitle(
|
||||
lan: json["lan"],
|
||||
lanDoc: json["lan_doc"],
|
||||
subtitleUrl: json["subtitle_url"],
|
||||
subtitleUrlV2: json["subtitle_url_v2"],
|
||||
);
|
||||
lan: json["lan"],
|
||||
lanDoc: json["lan_doc"],
|
||||
subtitleUrl: json["subtitle_url"],
|
||||
subtitleUrlV2: json["subtitle_url_v2"],
|
||||
);
|
||||
}
|
||||
|
||||
@@ -8,10 +8,10 @@ class SubtitleInfo {
|
||||
SubtitleInfo({this.lan, this.lanDoc, this.subtitles});
|
||||
|
||||
factory SubtitleInfo.fromJson(Map<String, dynamic> json) => SubtitleInfo(
|
||||
lan: json['lan'] as String?,
|
||||
lanDoc: json['lan_doc'] as String?,
|
||||
subtitles: (json['subtitles'] as List<dynamic>?)
|
||||
?.map((e) => Subtitle.fromJson(e as Map<String, dynamic>))
|
||||
.toList(),
|
||||
);
|
||||
lan: json['lan'] as String?,
|
||||
lanDoc: json['lan_doc'] as String?,
|
||||
subtitles: (json['subtitles'] as List<dynamic>?)
|
||||
?.map((e) => Subtitle.fromJson(e as Map<String, dynamic>))
|
||||
.toList(),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -20,13 +20,13 @@ class ViewPoint {
|
||||
});
|
||||
|
||||
factory ViewPoint.fromJson(Map<String, dynamic> json) => ViewPoint(
|
||||
type: json["type"],
|
||||
from: json["from"],
|
||||
to: json["to"],
|
||||
content: json["content"],
|
||||
imgUrl: json["imgUrl"],
|
||||
logoUrl: json["logoUrl"],
|
||||
teamType: json["team_type"],
|
||||
teamName: json["team_name"],
|
||||
);
|
||||
type: json["type"],
|
||||
from: json["from"],
|
||||
to: json["to"],
|
||||
content: json["content"],
|
||||
imgUrl: json["imgUrl"],
|
||||
logoUrl: json["logoUrl"],
|
||||
teamType: json["team_type"],
|
||||
teamName: json["team_name"],
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user