feat: live area

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-05-05 21:53:20 +08:00
parent 2e4c24393d
commit a2f72ee3f3
17 changed files with 262 additions and 408 deletions

View File

@@ -0,0 +1,23 @@
import 'package:PiliPlus/models/live/live_feed_index/card_data_list_item.dart';
class LiveSecondData {
int? count;
List<CardLiveItem>? cardList;
LiveSecondData({
this.count,
this.cardList,
});
factory LiveSecondData.fromJson(Map<String, dynamic> json) => LiveSecondData(
count: json['count'] as int?,
cardList: (json['list'] as List<dynamic>?)
?.map((e) => CardLiveItem.fromJson(e as Map<String, dynamic>))
.toList(),
);
Map<String, dynamic> toJson() => {
'count': count,
'list': cardList?.map((e) => e.toJson()).toList(),
};
}