package io.apibuilder.spec.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] * Describes the primary contact for this service */ @JsonIgnoreProperties(ignoreUnknown=true) data class Contact( @JsonProperty("name") @get:JsonProperty("name") val name: String?, @JsonProperty("url") @get:JsonProperty("url") val url: String?, @JsonProperty("email") @get:JsonProperty("email") val email: String? ) : Serializable { fun toJsonString(): String = io.apibuilder.spec.v0.models.JacksonObjectMapperFactory.create().writeValueAsString(this) companion object { fun parseJson(json: String): Contact = io.apibuilder.spec.v0.models.JacksonObjectMapperFactory.create().readValue( json, Contact::class.java) } }