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] */ @JsonIgnoreProperties(ignoreUnknown=true) data class Service( @JsonProperty("apidoc") @get:JsonProperty("apidoc") val apidoc: Apidoc?, @JsonProperty("name") @get:JsonProperty("name") val name: String, @JsonProperty("organization") @get:JsonProperty("organization") val organization: Organization, @JsonProperty("application") @get:JsonProperty("application") val application: Application, @JsonProperty("namespace") @get:JsonProperty("namespace") val namespace: String, @JsonProperty("version") @get:JsonProperty("version") val version: String, @JsonProperty("base_url") @get:JsonProperty("base_url") val baseUrl: String?, @JsonProperty("description") @get:JsonProperty("description") val description: String?, @JsonProperty("info") @get:JsonProperty("info") val info: Info, @JsonProperty("headers") @get:JsonProperty("headers") val headers: List
, @JsonProperty("imports") @get:JsonProperty("imports") val imports: List, @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("resources") @get:JsonProperty("resources") val resources: List, @JsonProperty("attributes") @get:JsonProperty("attributes") val attributes: 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): Service = io.apibuilder.spec.v0.models.JacksonObjectMapperFactory.create().readValue( json, Service::class.java) } }