package io.apibuilder.swagger.v0.models import com.fasterxml.jackson.annotation.JsonIgnoreProperties import com.fasterxml.jackson.annotation.JsonProperty import java.io.Serializable import kotlin.String import kotlin.collections.List import kotlin.collections.Map /** * This code was generated by [models.generator.kotlin.KotlinGenerator] */ @JsonIgnoreProperties(ignoreUnknown=true) data class Swagger( @JsonProperty("swagger") @get:JsonProperty("swagger") val swagger: String, @JsonProperty("info") @get:JsonProperty("info") val info: Info, @JsonProperty("host") @get:JsonProperty("host") val host: String?, @JsonProperty("basePath") @get:JsonProperty("basePath") val basePath: String?, @JsonProperty("schemes") @get:JsonProperty("schemes") val schemes: List?, @JsonProperty("consumes") @get:JsonProperty("consumes") val consumes: List?, @JsonProperty("produces") @get:JsonProperty("produces") val produces: List?, @JsonProperty("paths") @get:JsonProperty("paths") val paths: Map, @JsonProperty("definitions") @get:JsonProperty("definitions") val definitions: Map?, @JsonProperty("parameters") @get:JsonProperty("parameters") val parameters: Map?, @JsonProperty("responses") @get:JsonProperty("responses") val responses: Map?, @JsonProperty("securityDefinitions") @get:JsonProperty("securityDefinitions") val securityDefinitions: Map?, @JsonProperty("security") @get:JsonProperty("security") val security: Map?, @JsonProperty("tags") @get:JsonProperty("tags") val tags: List?, @JsonProperty("externalDocs") @get:JsonProperty("externalDocs") val externalDocs: ExternalDocumentation? ) : Serializable { fun toJsonString(): String = io.apibuilder.swagger.v0.models.JacksonObjectMapperFactory.create().writeValueAsString(this) companion object { fun parseJson(json: String): Swagger = io.apibuilder.swagger.v0.models.JacksonObjectMapperFactory.create().readValue( json, Swagger::class.java) } }