package com.afrosoft.apibuilder.api.v0.models import com.fasterxml.jackson.annotation.JsonIgnoreProperties import com.fasterxml.jackson.annotation.JsonProperty import java.io.Serializable import java.util.UUID import kotlin.String /** * This code was generated by [models.generator.kotlin.KotlinGenerator] * When searching for content, the results of the search will be a list of items. Each item will * have enough information to render for the user, including a type and item_guid to enable creating * the appropriate link. */ @JsonIgnoreProperties(ignoreUnknown=true) data class Item( @JsonProperty("guid") @get:JsonProperty("guid") val guid: UUID, @JsonProperty("detail") @get:JsonProperty("detail") val detail: ItemDetail, @JsonProperty("label") @get:JsonProperty("label") val label: String, @JsonProperty("description") @get:JsonProperty("description") val description: String? ) : Serializable { fun toJsonString(): String = com.afrosoft.apibuilder.api.v0.models.JacksonObjectMapperFactory.create().writeValueAsString(this) companion object { fun parseJson(json: String): Item = com.afrosoft.apibuilder.api.v0.models.JacksonObjectMapperFactory.create().readValue( json, Item::class.java) } }