opt handle res

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-05-25 11:16:35 +08:00
parent f29385ccef
commit fd55383778
91 changed files with 957 additions and 387 deletions

View File

@@ -0,0 +1,22 @@
import 'package:PiliPlus/models/pgc/pgc_index_item/list.dart';
class PgcIndexItemData {
int? hasNext;
List<PgcIndexItemModel>? list;
int? num;
int? size;
int? total;
PgcIndexItemData({this.hasNext, this.list, this.num, this.size, this.total});
factory PgcIndexItemData.fromJson(Map<String, dynamic> json) =>
PgcIndexItemData(
hasNext: json['has_next'] as int?,
list: (json['list'] as List<dynamic>?)
?.map((e) => PgcIndexItemModel.fromJson(e as Map<String, dynamic>))
.toList(),
num: json['num'] as int?,
size: json['size'] as int?,
total: json['total'] as int?,
);
}