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 /** * This code was generated by [models.generator.kotlin.KotlinGenerator] */ @JsonIgnoreProperties(ignoreUnknown=true) data class Info( @JsonProperty("title") @get:JsonProperty("title") val title: String, @JsonProperty("description") @get:JsonProperty("description") val description: String?, @JsonProperty("termsOfService") @get:JsonProperty("termsOfService") val termsOfService: String?, @JsonProperty("contact") @get:JsonProperty("contact") val contact: Contact?, @JsonProperty("license") @get:JsonProperty("license") val license: License?, @JsonProperty("version") @get:JsonProperty("version") val version: String ) : Serializable { fun toJsonString(): String = io.apibuilder.swagger.v0.models.JacksonObjectMapperFactory.create().writeValueAsString(this) companion object { fun parseJson(json: String): Info = io.apibuilder.swagger.v0.models.JacksonObjectMapperFactory.create().readValue( json, Info::class.java) } }