mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-18 16:16:14 +08:00
18 lines
498 B
Dart
18 lines
498 B
Dart
import 'package:PiliPlus/models_new/blacklist/list.dart';
|
|
|
|
class BlackListData {
|
|
List<BlackListItem>? list;
|
|
int? reVersion;
|
|
int? total;
|
|
|
|
BlackListData({this.list, this.reVersion, this.total});
|
|
|
|
factory BlackListData.fromJson(Map<String, dynamic> json) => BlackListData(
|
|
list: (json['list'] as List<dynamic>?)
|
|
?.map((e) => BlackListItem.fromJson(e as Map<String, dynamic>))
|
|
.toList(),
|
|
reVersion: json['re_version'] as int?,
|
|
total: json['total'] as int?,
|
|
);
|
|
}
|