package io.apibuilder.swagger.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 PathItem( @JsonProperty("ref") @get:JsonProperty("ref") val ref: String?, @JsonProperty("get") @get:JsonProperty("get") val get_: Operation?, @JsonProperty("put") @get:JsonProperty("put") val put: Operation?, @JsonProperty("post") @get:JsonProperty("post") val post: Operation?, @JsonProperty("delete") @get:JsonProperty("delete") val delete: Operation?, @JsonProperty("options") @get:JsonProperty("options") val options: Operation?, @JsonProperty("head") @get:JsonProperty("head") val head: Operation?, @JsonProperty("patch") @get:JsonProperty("patch") val patch: Operation?, @JsonProperty("parameters") @get:JsonProperty("parameters") val parameters: List? ) : Serializable { fun toJsonString(): String = io.apibuilder.swagger.v0.models.JacksonObjectMapperFactory.create().writeValueAsString(this) companion object { fun parseJson(json: String): PathItem = io.apibuilder.swagger.v0.models.JacksonObjectMapperFactory.create().readValue( json, PathItem::class.java) } }