package io.apibuilder.swagger.v0.models import com.fasterxml.jackson.annotation.JsonIgnoreProperties import com.fasterxml.jackson.annotation.JsonProperty import io.apibuilder.swagger.v0.enums.ApiKeyInType import io.apibuilder.swagger.v0.enums.SecuritySchemeType import java.io.Serializable import kotlin.String import kotlin.collections.Map /** * This code was generated by [models.generator.kotlin.KotlinGenerator] * TODO: Consider making this a union type of the three different schemes (and their required * fields) */ @JsonIgnoreProperties(ignoreUnknown=true) data class SecurityScheme( @JsonProperty("type") @get:JsonProperty("type") val type: SecuritySchemeType, @JsonProperty("description") @get:JsonProperty("description") val description: String?, @JsonProperty("name") @get:JsonProperty("name") val name: String?, @JsonProperty("in") @get:JsonProperty("in") val in_: ApiKeyInType?, @JsonProperty("flow") @get:JsonProperty("flow") val flow: String?, @JsonProperty("authorizationUrl") @get:JsonProperty("authorizationUrl") val authorizationUrl: String?, @JsonProperty("tokenUrl") @get:JsonProperty("tokenUrl") val tokenUrl: String?, @JsonProperty("scopes") @get:JsonProperty("scopes") val scopes: Map? ) : Serializable { fun toJsonString(): String = io.apibuilder.swagger.v0.models.JacksonObjectMapperFactory.create().writeValueAsString(this) companion object { fun parseJson(json: String): SecurityScheme = io.apibuilder.swagger.v0.models.JacksonObjectMapperFactory.create().readValue( json, SecurityScheme::class.java) } }