wire-profiles / com.squareup.wire.java.internal / TypeConfigElement

TypeConfigElement

data class TypeConfigElement

Configures how Wire will generate code for a specific type. This configuration belongs in a build.wire file that is in the same directory as the configured type.

Constructors

<init>

TypeConfigElement(location: Location, type: String? = null, documentation: String = "", with: List<OptionElement> = emptyList(), target: String? = null, adapter: String? = null)

Configures how Wire will generate code for a specific type. This configuration belongs in a build.wire file that is in the same directory as the configured type.

Properties

adapter

val adapter: String?

documentation

val documentation: String

location

val location: Location

target

val target: String?

type

val type: String?

with

val with: List<OptionElement>

Functions

toSchema

fun toSchema(): <ERROR CLASS>