Files
PiliPlus/lib/models/live/live_second_list/data.dart
bggRGjQaUbCoE a2f72ee3f3 feat: live area
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
2025-05-05 22:15:55 +08:00

24 lines
620 B
Dart

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