mass update

This commit is contained in:
2025-12-04 15:23:47 +01:00
parent 054c99f720
commit e04e57d2d2
6 changed files with 310 additions and 47 deletions
+1
View File
@@ -0,0 +1 @@
test
+3
View File
@@ -11,6 +11,7 @@ class Game {
final String? summary;
final String? coverUrl;
final int? releaseYear;
final bool locked;
Game({
required this.id,
@@ -23,6 +24,7 @@ class Game {
this.summary,
this.coverUrl,
this.releaseYear,
this.locked = false,
});
factory Game.fromJson(Map<String, dynamic> j) {
@@ -37,6 +39,7 @@ class Game {
summary: j['loc_summary'] as String?,
coverUrl: j['cover_url'] as String?,
releaseYear: (j['release_year'] as num?)?.toInt(),
locked: ((j['loc_locked'] ?? j['locked'] ?? 0) as num?)?.toInt() == 1,
);
}