package io.apibuilder.postman.collection.v21.v0.models import com.fasterxml.jackson.annotation.JsonIgnoreProperties import com.fasterxml.jackson.annotation.JsonProperty import com.fasterxml.jackson.annotation.JsonSubTypes import com.fasterxml.jackson.annotation.JsonTypeInfo import java.io.Serializable import kotlin.String import kotlin.collections.List /** * This code was generated by [models.generator.kotlin.KotlinGenerator] */ @JsonIgnoreProperties(ignoreUnknown=true) @JsonTypeInfo( use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, property = "type", defaultImpl = io.apibuilder.postman.collection.v21.v0.models.Items.ItemsUndefined::class ) @JsonSubTypes( JsonSubTypes.Type(value = io.apibuilder.postman.collection.v21.v0.models.Items.Item::class, name = "item"), JsonSubTypes.Type(value = io.apibuilder.postman.collection.v21.v0.models.Items.Folder::class, name = "folder"), JsonSubTypes.Type(value = io.apibuilder.postman.collection.v21.v0.models.Items.ItemsUndefined::class) ) sealed class Items { /** * This code was generated by [models.generator.kotlin.KotlinGenerator] */ @JsonIgnoreProperties(ignoreUnknown=true) @JsonTypeInfo(use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NONE) data class Folder( @JsonProperty("name") @get:JsonProperty("name") val name: String, @JsonProperty("description") @get:JsonProperty("description") val description: Description?, @JsonProperty("variable") @get:JsonProperty("variable") val variable: List?, @JsonProperty("item") @get:JsonProperty("item") val item: List, @JsonProperty("event") @get:JsonProperty("event") val event: List?, @JsonProperty("auth") @get:JsonProperty("auth") val auth: Auth? ) : Items(), Serializable { fun toJsonString(): String = io.apibuilder.postman.collection.v21.v0.models.JacksonObjectMapperFactory.create().writeValueAsString(this) companion object { fun parseJson(json: String): Folder = io.apibuilder.postman.collection.v21.v0.models.JacksonObjectMapperFactory.create().readValue( json, Folder::class.java) } } /** * This code was generated by [models.generator.kotlin.KotlinGenerator] */ @JsonIgnoreProperties(ignoreUnknown=true) @JsonTypeInfo(use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NONE) data class Item( @JsonProperty("id") @get:JsonProperty("id") val id: String?, @JsonProperty("name") @get:JsonProperty("name") val name: String?, @JsonProperty("description") @get:JsonProperty("description") val description: Description?, @JsonProperty("variable") @get:JsonProperty("variable") val variable: List?, @JsonProperty("event") @get:JsonProperty("event") val event: List?, @JsonProperty("request") @get:JsonProperty("request") val request: Request, @JsonProperty("response") @get:JsonProperty("response") val response: List? ) : Items(), Serializable { fun toJsonString(): String = io.apibuilder.postman.collection.v21.v0.models.JacksonObjectMapperFactory.create().writeValueAsString(this) companion object { fun parseJson(json: String): Item = io.apibuilder.postman.collection.v21.v0.models.JacksonObjectMapperFactory.create().readValue( json, Item::class.java) } } @JsonTypeInfo(use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NONE) object ItemsUndefined : Items() companion object { fun parseJson(json: String): Items = io.apibuilder.postman.collection.v21.v0.models.JacksonObjectMapperFactory.create().readValue( json, Items::class.java) } }