mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-20 19:14:42 +08:00
feat: super chat
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
13
lib/models_new/live/live_superchat/data.dart
Normal file
13
lib/models_new/live/live_superchat/data.dart
Normal file
@@ -0,0 +1,13 @@
|
||||
import 'package:PiliPlus/models_new/live/live_superchat/item.dart';
|
||||
|
||||
class SuperChatData {
|
||||
List<SuperChatItem>? list;
|
||||
|
||||
SuperChatData({this.list});
|
||||
|
||||
factory SuperChatData.fromJson(Map<String, dynamic> json) => SuperChatData(
|
||||
list: (json['list'] as List<dynamic>?)
|
||||
?.map((e) => SuperChatItem.fromJson(e as Map<String, dynamic>))
|
||||
.toList(),
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user