package natalia.foursquare.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] * Venue */ @JsonIgnoreProperties(ignoreUnknown=true) data class Venue( @JsonProperty("name") @get:JsonProperty("name") val name: String, @JsonProperty("id") @get:JsonProperty("id") val id: String, @JsonProperty("bestPhoto") @get:JsonProperty("bestPhoto") val bestPhoto: Photo? ) : Serializable { fun toJsonString(): String = natalia.foursquare.v0.models.JacksonObjectMapperFactory.create().writeValueAsString(this) companion object { fun parseJson(json: String): Venue = natalia.foursquare.v0.models.JacksonObjectMapperFactory.create().readValue( json, Venue::class.java) } }