Files
PiliPlus/lib/models_new/live/live_follow/data.dart
My-Responsitories 521ca3ad18 tweaks (#1788)
* tweak

* opt: show bar

* opt: crc32

* opt: appsign

* opt: Get

* opt: compress only if large

* opt: wbi

* tweak

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>

---------

Signed-off-by: My-Responsitories <107370289+My-Responsitories@users.noreply.github.com>
Co-authored-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
2025-12-23 12:57:19 +08:00

33 lines
783 B
Dart

import 'package:PiliPlus/models_new/live/live_follow/item.dart';
class LiveFollowData {
String? title;
int? pageSize;
int? totalPage;
List<LiveFollowItem>? list;
int? count;
int? liveCount;
LiveFollowData({
this.title,
this.pageSize,
this.totalPage,
this.list,
this.count,
this.liveCount,
});
LiveFollowData.fromJson(Map<String, dynamic> json) {
title = json['title'] as String?;
pageSize = json['pageSize'] as int?;
totalPage = json['totalPage'] as int?;
list = (json['list'] as List<dynamic>?)
?.cast<Map<String, dynamic>>()
.where((i) => i['live_status'] == 1)
.map(LiveFollowItem.fromJson)
.toList();
count = json['count'] as int?;
liveCount = json['live_count'] as int?;
}
}