package io.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] * Attributes are globally unique key which allow users to specify additional content to pass in to * the code generators. */ @JsonIgnoreProperties(ignoreUnknown=true) data class Attribute( @JsonProperty("guid") @get:JsonProperty("guid") val guid: UUID, @JsonProperty("name") @get:JsonProperty("name") val name: String, @JsonProperty("description") @get:JsonProperty("description") val description: String?, @JsonProperty("audit") @get:JsonProperty("audit") val audit: io.apibuilder.common.v0.models.Audit ) : Serializable { fun toJsonString(): String = io.apibuilder.api.v0.models.JacksonObjectMapperFactory.create().writeValueAsString(this) companion object { fun parseJson(json: String): Attribute = io.apibuilder.api.v0.models.JacksonObjectMapperFactory.create().readValue( json, Attribute::class.java) } }