delete games
This commit is contained in:
@@ -10,6 +10,7 @@ class Game {
|
||||
final String? note;
|
||||
final String? summary;
|
||||
final String? coverUrl;
|
||||
final int? releaseYear;
|
||||
|
||||
Game({
|
||||
required this.id,
|
||||
@@ -21,6 +22,7 @@ class Game {
|
||||
this.note,
|
||||
this.summary,
|
||||
this.coverUrl,
|
||||
this.releaseYear,
|
||||
});
|
||||
|
||||
factory Game.fromJson(Map<String, dynamic> j) {
|
||||
@@ -34,6 +36,7 @@ class Game {
|
||||
note: j['note'] as String?,
|
||||
summary: j['loc_summary'] as String?,
|
||||
coverUrl: j['cover_url'] as String?,
|
||||
releaseYear: (j['release_year'] as num?)?.toInt(),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user