Named

@Serializable(with = HandleSerializers.Named::class)
data class Named<out T : NamedModel> : Handle<T> (source)

Represents a reference to another resource in the API by name and URL. This matches the "named resource" object pattern in the PokeAPI documentation. See: https://pokeapi.co/docs/v2#namedapiresource

Parameters

name

The (unique) name of the referenced resource.

Properties

Link copied to clipboard
val id: Int

The identifier for the resource.

Link copied to clipboard

Functions

Link copied to clipboard
suspend fun <T : Model> Handle<T>.get(): T