package natalia.foursquare.v0.models import com.fasterxml.jackson.annotation.JsonIgnoreProperties import com.fasterxml.jackson.annotation.JsonProperty import java.io.Serializable import kotlin.Int import kotlin.String /** * This code was generated by [models.generator.kotlin.KotlinGenerator] * Photo of venues */ @JsonIgnoreProperties(ignoreUnknown=true) data class Photo( @JsonProperty("prefix") @get:JsonProperty("prefix") val prefix: String, @JsonProperty("suffix") @get:JsonProperty("suffix") val suffix: String, @JsonProperty("width") @get:JsonProperty("width") val width: Int, @JsonProperty("height") @get:JsonProperty("height") val height: Int ) : Serializable { fun toJsonString(): String = natalia.foursquare.v0.models.JacksonObjectMapperFactory.create().writeValueAsString(this) companion object { fun parseJson(json: String): Photo = natalia.foursquare.v0.models.JacksonObjectMapperFactory.create().readValue( json, Photo::class.java) } }