Genre class

Constructors

Genre({required int id, required String name, required String slug, required int gamesCount, required String imageBackground})
Constructor of Genre
Genre.fromJson(Map<String, dynamic> json)
get the model from the json
factory

Properties

gamesCount int
nuber of Game with the Genre
final
hashCode int
The hash code for this object.
no setterinherited
id int
ID of Genre
final
imageBackground String
Image of Genre
final
name String
name of Genre
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
slug String
slug ID of Genre
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
get the json from the model
toString() String
A string representation of this object.
override

Operators

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