mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-21 17:46:24 +08:00
18 lines
464 B
Dart
18 lines
464 B
Dart
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?,
|
|
);
|
|
}
|