mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-07-31 07:50:12 +08:00
@@ -1,31 +1,13 @@
|
||||
class DanmakuPost {
|
||||
DanmakuPost({
|
||||
required this.action,
|
||||
required this.animation,
|
||||
required this.colorfulSrc,
|
||||
required this.dmContent,
|
||||
required this.dmid,
|
||||
required this.dmidStr,
|
||||
required this.visible,
|
||||
});
|
||||
|
||||
final String? action;
|
||||
final String? animation;
|
||||
final dynamic colorfulSrc;
|
||||
final String? dmContent;
|
||||
final int? dmid;
|
||||
final String? dmidStr;
|
||||
final bool? visible;
|
||||
|
||||
factory DanmakuPost.fromJson(Map<String, dynamic> json) {
|
||||
return DanmakuPost(
|
||||
action: json["action"],
|
||||
animation: json["animation"],
|
||||
colorfulSrc: json["colorful_src"],
|
||||
dmContent: json["dm_content"],
|
||||
dmid: json["dmid"],
|
||||
dmidStr: json["dmid_str"],
|
||||
visible: json["visible"],
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user