opt: blacklist page

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-04-17 10:48:03 +08:00
parent 8427ebc36e
commit 07c04a9e7e
3 changed files with 8 additions and 8 deletions

View File

@@ -9,8 +9,9 @@ class BlackListDataModel {
BlackListDataModel.fromJson(Map<String, dynamic> json) {
list = (json['list'] as List?)
?.map<BlackListItem>((e) => BlackListItem.fromJson(e))
.toList();
?.map<BlackListItem>((e) => BlackListItem.fromJson(e))
.toList() ??
<BlackListItem>[];
total = json['total'];
}
}