package io.apibuilder.spec.v0.models import com.fasterxml.jackson.annotation.JsonIgnoreProperties import com.fasterxml.jackson.annotation.JsonProperty import io.apibuilder.spec.v0.enums.Method 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 Operation( @JsonProperty("method") @get:JsonProperty("method") val method: Method, @JsonProperty("path") @get:JsonProperty("path") val path: String, @JsonProperty("description") @get:JsonProperty("description") val description: String?, @JsonProperty("deprecation") @get:JsonProperty("deprecation") val deprecation: Deprecation?, @JsonProperty("body") @get:JsonProperty("body") val body: Body?, @JsonProperty("parameters") @get:JsonProperty("parameters") val parameters: List, @JsonProperty("responses") @get:JsonProperty("responses") val responses: List, @JsonProperty("attributes") @get:JsonProperty("attributes") val attributes: List ) : Serializable { fun toJsonString(): String = io.apibuilder.spec.v0.models.JacksonObjectMapperFactory.create().writeValueAsString(this) companion object { fun parseJson(json: String): Operation = io.apibuilder.spec.v0.models.JacksonObjectMapperFactory.create().readValue( json, Operation::class.java) } }