mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-20 19:14:42 +08:00
17
lib/models_new/blacklist/data.dart
Normal file
17
lib/models_new/blacklist/data.dart
Normal file
@@ -0,0 +1,17 @@
|
||||
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?,
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user