package io.apibuilder.api.json.v0.models import com.fasterxml.jackson.annotation.JsonIgnoreProperties import com.fasterxml.jackson.annotation.JsonProperty import java.io.Serializable import kotlin.String import kotlin.collections.List /** * This code was generated by [models.generator.kotlin.KotlinGenerator] */ @JsonIgnoreProperties(ignoreUnknown=true) data class Model( @JsonProperty("description") @get:JsonProperty("description") val description: String?, @JsonProperty("plural") @get:JsonProperty("plural") val plural: String?, @JsonProperty("fields") @get:JsonProperty("fields") val fields: List?, @JsonProperty("attributes") @get:JsonProperty("attributes") val attributes: List?, @JsonProperty("interfaces") @get:JsonProperty("interfaces") val interfaces: List?, @JsonProperty("templates") @get:JsonProperty("templates") val templates: List?, @JsonProperty("deprecation") @get:JsonProperty("deprecation") val deprecation: Deprecation? ) : Serializable { fun toJsonString(): String = io.apibuilder.api.json.v0.models.JacksonObjectMapperFactory.create().writeValueAsString(this) companion object { fun parseJson(json: String): Model = io.apibuilder.api.json.v0.models.JacksonObjectMapperFactory.create().readValue( json, Model::class.java) } }