PokemonHabitat

@Serializable
data class PokemonHabitat(val id: Int, val name: String, val names: List<Name>, val pokemonSpecies: List<Handle.Named<PokemonSpecies>>) : NamedModel(source)

Habitats are generally different terrain Pokémon can be found in but can also be structures like buildings. See: https://pokeapi.co/docs/v2#pokemonhabitat

Parameters

id

The identifier for this Pokémon habitat resource.

name

The name for this Pokémon habitat resource.

names

The name of this Pokémon habitat listed in different languages.

pokemonSpecies

A list of the Pokémon species that can be found in this habitat.

Constructors

Link copied to clipboard
constructor(id: Int, name: String, names: List<Name>, pokemonSpecies: List<Handle.Named<PokemonSpecies>>)

Properties

Link copied to clipboard
open override val id: Int
Link copied to clipboard
open override val name: String
Link copied to clipboard