LocationArea class

Annotations
  • @freezed

Constructors

LocationArea(int id, String name, @JsonKey(name: 'game_index') int gameIndex, @JsonKey(name: 'encounter_method_rates') List<EncounterMethodRate> encounterMethodRates, NamedAPIResource location, List<Name> names, @JsonKey(name: 'pokemon_encounters') List<PokemonEncounter> pokemonEncounters)
const
factory
LocationArea.fromJson(Json json)
factory

Properties

copyWith → $LocationAreaCopyWith<LocationArea>
no setterinherited
encounterMethodRates List<EncounterMethodRate>
A list of methods in which Pokémon may be encountered in this area and how likely the method will occur depending on the version of the game.
no setterinherited
gameIndex int
The internal id of an API resource within game data.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
id int
The identifier for this resource.
no setterinherited
location NamedAPIResource
The region this location area can be found in.
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
pokemonEncounters List<PokemonEncounter>
A list of Pokémon that can be encountered in this area along with version specific details about the encounter.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
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