mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-06-29 05:40:17 +08:00
17
lib/models_new/sub/sub/data.dart
Normal file
17
lib/models_new/sub/sub/data.dart
Normal file
@@ -0,0 +1,17 @@
|
||||
import 'package:PiliPlus/models_new/sub/sub/list.dart';
|
||||
|
||||
class SubData {
|
||||
int? count;
|
||||
List<SubItemModel>? list;
|
||||
bool? hasMore;
|
||||
|
||||
SubData({this.count, this.list, this.hasMore});
|
||||
|
||||
factory SubData.fromJson(Map<String, dynamic> json) => SubData(
|
||||
count: json['count'] as int?,
|
||||
list: (json['list'] as List<dynamic>?)
|
||||
?.map((e) => SubItemModel.fromJson(e as Map<String, dynamic>))
|
||||
.toList(),
|
||||
hasMore: json['has_more'] as bool?,
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user