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] * Attribute values can be set at different levels. Initially we support setting organization wide * attributes, but in the future plan to support setting attribute values with each version of the * application. */ @JsonIgnoreProperties(ignoreUnknown=true) data class AttributeValue( @JsonProperty("guid") @get:JsonProperty("guid") val guid: UUID, @JsonProperty("attribute") @get:JsonProperty("attribute") val attribute: AttributeSummary, @JsonProperty("value") @get:JsonProperty("value") val value: String, @JsonProperty("audit") @get:JsonProperty("audit") val audit: io.apibuilder.common.v0.models.Audit ) : Serializable { fun toJsonString(): String = com.afrosoft.apibuilder.api.v0.models.JacksonObjectMapperFactory.create().writeValueAsString(this) companion object { fun parseJson(json: String): AttributeValue = com.afrosoft.apibuilder.api.v0.models.JacksonObjectMapperFactory.create().readValue( json, AttributeValue::class.java) } }