TypeMetadata

data class TypeMetadata(val name: String, val nullable: Boolean? = false, val arguments: List<TypeMetadata> = emptyList())(source)

Describes a Kotlin type used while rendering generated clients.

Constructors

Link copied to clipboard
constructor(name: String, nullable: Boolean? = false, arguments: List<TypeMetadata> = emptyList())

Properties

Link copied to clipboard

generic type arguments that decorate the type.

Link copied to clipboard

simple name of the type (without package qualification).

Link copied to clipboard

whether the type is nullable; null indicates unknown/nullability.

Functions

Link copied to clipboard

Collects the simple names of the receiver type and all of its nested generic arguments.

Link copied to clipboard

Determines a Kotlin type that represents the payload carried by Tapik body metadata.

Link copied to clipboard

Renders the receiver type as a Kotlin type literal, including generics and nullability information.

Link copied to clipboard

Resolves the simple, unqualified name of the receiver type.

Link copied to clipboard
open override fun toString(): String

Renders the type as a Kotlin type literal, including nullability and generic arguments.