mass update
This commit is contained in:
@@ -0,0 +1 @@
|
||||
test
|
||||
@@ -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,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user