Skip to content
v2.0.0

Evolution

No. 005 Evolution 2 endpoints

EvolutionChain

The EvolutionChain class can be used to make request to /evolution-chain/{id} endpoint.

val evolutionChain = PokeApi.get<EvolutionChain>(id = 1)

You cannot used PokeApi.get<EvolutionChain>(name = '...') for this class

EvolutionTrigger

The EvolutionChain class can be used to make request to /evolution-trigger/{id or name} endpoint.

val evolutionTrigger = PokeApi.get<EvolutionTrigger>(id = 1)