mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-24 02:56:58 +08:00
35 lines
705 B
Dart
35 lines
705 B
Dart
class Interaction {
|
|
HistoryNode? historyNode;
|
|
int? graphVersion;
|
|
|
|
Interaction({
|
|
this.historyNode,
|
|
this.graphVersion,
|
|
});
|
|
|
|
factory Interaction.fromJson(Map<String, dynamic> json) => Interaction(
|
|
historyNode: json["history_node"] == null
|
|
? null
|
|
: HistoryNode.fromJson(json["history_node"]),
|
|
graphVersion: json["graph_version"],
|
|
);
|
|
}
|
|
|
|
class HistoryNode {
|
|
int? nodeId;
|
|
String? title;
|
|
int? cid;
|
|
|
|
HistoryNode({
|
|
this.nodeId,
|
|
this.title,
|
|
this.cid,
|
|
});
|
|
|
|
factory HistoryNode.fromJson(Map<String, dynamic> json) => HistoryNode(
|
|
nodeId: json["node_id"],
|
|
title: json["title"],
|
|
cid: json["cid"],
|
|
);
|
|
}
|