package io.apibuilder.generator.v0.models import com.fasterxml.jackson.annotation.JsonIgnoreProperties import com.fasterxml.jackson.annotation.JsonProperty import java.io.Serializable import kotlin.String /** * This code was generated by [models.generator.kotlin.KotlinGenerator] * An attribute represents a key/value pair that is optionally used to provide additional * instructions / data to the code generator. An example could be an attribute to specify the root * import path for a go client.. */ @JsonIgnoreProperties(ignoreUnknown=true) data class Attribute( @JsonProperty("name") @get:JsonProperty("name") val name: String, @JsonProperty("value") @get:JsonProperty("value") val value: String ) : Serializable { fun toJsonString(): String = io.apibuilder.generator.v0.models.JacksonObjectMapperFactory.create().writeValueAsString(this) companion object { fun parseJson(json: String): Attribute = io.apibuilder.generator.v0.models.JacksonObjectMapperFactory.create().readValue( json, Attribute::class.java) } }