package io.apibuilder.spec.v0.models import com.fasterxml.jackson.annotation.JsonIgnoreProperties import com.fasterxml.jackson.annotation.JsonProperty import java.io.Serializable import kotlin.Boolean import kotlin.Long import kotlin.String import kotlin.collections.List /** * This code was generated by [models.generator.kotlin.KotlinGenerator] */ @JsonIgnoreProperties(ignoreUnknown=true) data class Field( @JsonProperty("name") @get:JsonProperty("name") val name: String, @JsonProperty("type") @get:JsonProperty("type") val type: String, @JsonProperty("description") @get:JsonProperty("description") val description: String?, @JsonProperty("deprecation") @get:JsonProperty("deprecation") val deprecation: Deprecation?, @JsonProperty("default") @get:JsonProperty("default") val default: String?, @JsonProperty("required") @get:JsonProperty("required") val required: Boolean, @JsonProperty("minimum") @get:JsonProperty("minimum") val minimum: Long?, @JsonProperty("maximum") @get:JsonProperty("maximum") val maximum: Long?, @JsonProperty("example") @get:JsonProperty("example") val example: String?, @JsonProperty("attributes") @get:JsonProperty("attributes") val attributes: List, @JsonProperty("annotations") @get:JsonProperty("annotations") val annotations: List? ) : Serializable { fun toJsonString(): String = io.apibuilder.spec.v0.models.JacksonObjectMapperFactory.create().writeValueAsString(this) companion object { fun parseJson(json: String): Field = io.apibuilder.spec.v0.models.JacksonObjectMapperFactory.create().readValue( json, Field::class.java) } }