Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-07-23 16:47:11 +08:00
parent 148e0872b4
commit 418a1e8d39
821 changed files with 29467 additions and 25520 deletions

View File

@@ -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"]),
);
}

View File

@@ -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"],
);
}

View File

@@ -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"],
);
}

View File

@@ -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(),
);
}

View File

@@ -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"],
);
}