package io.apibuilder.api.json.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 ApiJson( @JsonProperty("name") @get:JsonProperty("name") val name: String, @JsonProperty("info") @get:JsonProperty("info") val info: Info?, @JsonProperty("namespace") @get:JsonProperty("namespace") val namespace: String?, @JsonProperty("base_url") @get:JsonProperty("base_url") val baseUrl: String?, @JsonProperty("description") @get:JsonProperty("description") val description: String?, @JsonProperty("imports") @get:JsonProperty("imports") val imports: List?, @JsonProperty("headers") @get:JsonProperty("headers") val headers: List
?, @JsonProperty("enums") @get:JsonProperty("enums") val enums: Map?, @JsonProperty("interfaces") @get:JsonProperty("interfaces") val interfaces: Map?, @JsonProperty("templates") @get:JsonProperty("templates") val templates: Templates?, @JsonProperty("unions") @get:JsonProperty("unions") val unions: Map?, @JsonProperty("models") @get:JsonProperty("models") val models: Map?, @JsonProperty("resources") @get:JsonProperty("resources") val resources: Map?, @JsonProperty("annotations") @get:JsonProperty("annotations") val annotations: Map?, @JsonProperty("attributes") @get:JsonProperty("attributes") val attributes: List? ) : Serializable { fun toJsonString(): String = io.apibuilder.api.json.v0.models.JacksonObjectMapperFactory.create().writeValueAsString(this) companion object { fun parseJson(json: String): ApiJson = io.apibuilder.api.json.v0.models.JacksonObjectMapperFactory.create().readValue( json, ApiJson::class.java) } }