Game class

Constructors

Game({required int id, required String slug, required String name, required String nameOriginal, required String description, required String released, required bool tba, required String backgroundImage, required String website, required int achievementsCount, required List<String> alternativeNames, required int playtime, required int metacriticRating, required double rating, required List<Platform> platforms})
Constructor of Game
Game.fromJson(Map<String, dynamic> json)
get the model from the json
factory

Properties

achievementsCount int
achievements count of Game (only with details call)
final
alternativeNames List<String>
alternative name of Game (only with details call)
final
backgroundImage String
bg image of Game
final
description String
description of Game (only with details call)
final
hashCode int
The hash code for this object.
no setterinherited
id int
ID of Game
final
metacriticRating int
metacritic rating of the game (only with details call)
final
name String
name of Game
final
nameOriginal String
originale name of Game
final
platforms List<Platform>
list of the Platform where the game is avaliable
final
playtime int
Play time in hours (only with details call)
final
rating double
general rating of the game (only with details call)
final
released String
released date of Game
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
slug String
slug ID of Game
final
tba bool
is TBA
final
website String
website of Game (only with details call)
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited