package io.apibuilder.spec.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 /** * This code was generated by [models.generator.kotlin.KotlinGenerator] * An import is used to declare a dependency on another application. This allows you to reference * the models and or enums from that application in your own app. */ @JsonIgnoreProperties(ignoreUnknown=true) data class Import( @JsonProperty("uri") @get:JsonProperty("uri") val uri: String, @JsonProperty("namespace") @get:JsonProperty("namespace") val namespace: String, @JsonProperty("organization") @get:JsonProperty("organization") val organization: Organization, @JsonProperty("application") @get:JsonProperty("application") val application: Application, @JsonProperty("version") @get:JsonProperty("version") val version: String, @JsonProperty("enums") @get:JsonProperty("enums") val enums: List, @JsonProperty("interfaces") @get:JsonProperty("interfaces") val interfaces: List?, @JsonProperty("unions") @get:JsonProperty("unions") val unions: List, @JsonProperty("models") @get:JsonProperty("models") val models: List, @JsonProperty("annotations") @get:JsonProperty("annotations") val annotations: List? ) : Serializable { fun toJsonString(): String = io.apibuilder.spec.v0.models.JacksonObjectMapperFactory.create().writeValueAsString(this) companion object { fun parseJson(json: String): Import = io.apibuilder.spec.v0.models.JacksonObjectMapperFactory.create().readValue( json, Import::class.java) } }