mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-08-05 02:00:13 +08:00
opt handle res
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
22
lib/models/pgc/pgc_index_item/data.dart
Normal file
22
lib/models/pgc/pgc_index_item/data.dart
Normal 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?,
|
||||
);
|
||||
}
|
||||
57
lib/models/pgc/pgc_index_item/list.dart
Normal file
57
lib/models/pgc/pgc_index_item/list.dart
Normal file
@@ -0,0 +1,57 @@
|
||||
class PgcIndexItemModel {
|
||||
String? badge;
|
||||
int? badgeType;
|
||||
String? cover;
|
||||
String? indexShow;
|
||||
int? isFinish;
|
||||
String? link;
|
||||
int? mediaId;
|
||||
String? order;
|
||||
String? orderType;
|
||||
String? score;
|
||||
int? seasonId;
|
||||
int? seasonStatus;
|
||||
int? seasonType;
|
||||
String? subTitle;
|
||||
String? title;
|
||||
String? titleIcon;
|
||||
|
||||
PgcIndexItemModel({
|
||||
this.badge,
|
||||
this.badgeType,
|
||||
this.cover,
|
||||
this.indexShow,
|
||||
this.isFinish,
|
||||
this.link,
|
||||
this.mediaId,
|
||||
this.order,
|
||||
this.orderType,
|
||||
this.score,
|
||||
this.seasonId,
|
||||
this.seasonStatus,
|
||||
this.seasonType,
|
||||
this.subTitle,
|
||||
this.title,
|
||||
this.titleIcon,
|
||||
});
|
||||
|
||||
factory PgcIndexItemModel.fromJson(Map<String, dynamic> json) =>
|
||||
PgcIndexItemModel(
|
||||
badge: json['badge'] as String?,
|
||||
badgeType: json['badge_type'] as int?,
|
||||
cover: json['cover'] as String?,
|
||||
indexShow: json['index_show'] as String?,
|
||||
isFinish: json['is_finish'] as int?,
|
||||
link: json['link'] as String?,
|
||||
mediaId: json['media_id'] as int?,
|
||||
order: json['order'] as String?,
|
||||
orderType: json['order_type'] as String?,
|
||||
score: json['score'] as String?,
|
||||
seasonId: json['season_id'] as int?,
|
||||
seasonStatus: json['season_status'] as int?,
|
||||
seasonType: json['season_type'] as int?,
|
||||
subTitle: json['subTitle'] as String?,
|
||||
title: json['title'] as String?,
|
||||
titleIcon: json['title_icon'] as String?,
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user