mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-25 03:26:22 +08:00
feat: new pgc rank
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
23
lib/models/bangumi/pgc_rank/data.dart
Normal file
23
lib/models/bangumi/pgc_rank/data.dart
Normal file
@@ -0,0 +1,23 @@
|
||||
import 'pgc_rank_item_model.dart';
|
||||
|
||||
class Data {
|
||||
List<PgcRankItemModel>? list;
|
||||
String? note;
|
||||
int? seasonType;
|
||||
|
||||
Data({this.list, this.note, this.seasonType});
|
||||
|
||||
factory Data.fromJson(Map<String, dynamic> json) => Data(
|
||||
list: (json['list'] as List<dynamic>?)
|
||||
?.map((e) => PgcRankItemModel.fromJson(e as Map<String, dynamic>))
|
||||
.toList(),
|
||||
note: json['note'] as String?,
|
||||
seasonType: json['season_type'] as int?,
|
||||
);
|
||||
|
||||
Map<String, dynamic> toJson() => {
|
||||
'list': list?.map((e) => e.toJson()).toList(),
|
||||
'note': note,
|
||||
'season_type': seasonType,
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user