Fixed issues filtering

This commit is contained in:
Juan Gilsanz Polo 2022-10-18 01:27:52 +02:00
parent 7b344aacce
commit d46dd19b48
2 changed files with 3 additions and 3 deletions

View file

@ -70,7 +70,7 @@ class Filter {
factory Filter.fromJson(Map<String, dynamic> json) => Filter(
url: json["url"],
name: json["name"],
lastUpdated: json["last_updated"] != '' ? DateTime.parse(json["last_updated"]) : null,
lastUpdated: json["last_updated"] != null && json["last_updated"] != '' ? DateTime.parse(json["last_updated"]) : null,
id: json["id"],
rulesCount: json["rules_count"],
enabled: json["enabled"],