PokedexData class

Annotations
  • @freezed

Constructors

PokedexData(int id, String name, @JsonKey(name: 'is_main_series') bool isMainSeries, List<Description> descriptions, List<Name> names, @JsonKey(name: 'pokemon_entries') List<PokemonEntry> pokemonEntries, NamedAPIResource? region, @JsonKey(name: 'version_groups') List<NamedAPIResource> versionGroups)
const
factory
PokedexData.fromJson(Json json)
factory

Properties

copyWith → $PokedexDataCopyWith<PokedexData>
no setterinherited
descriptions List<Description>
The description of this resource listed in different languages.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
id int
The identifier for this resource.
no setterinherited
isMainSeries bool
Whether or not this Pokédex originated in the main series of the video games.
no setterinherited
name String
The name for this resource.
no setterinherited
names List<Name>
The name of this resource listed in different languages.
no setterinherited
pokemonEntries List<PokemonEntry>
A list of Pokémon catalogued in this Pokédex and their indexes.
no setterinherited
region NamedAPIResource?
The region this Pokédex catalogues Pokémon for.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
versionGroups List<NamedAPIResource>
A list of version groups this Pokédex is relevant to.
no setterinherited

Methods

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

Operators

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