package com.gilt.public_.api.models import com.fasterxml.jackson.annotation.JsonIgnoreProperties import com.fasterxml.jackson.annotation.JsonProperty import com.gilt.public_.api.enums.Store import java.io.Serializable import kotlin.Any import kotlin.String import kotlin.collections.List import org.threeten.bp.Instant /** * This code was generated by [models.generator.kotlin.KotlinGenerator] */ @JsonIgnoreProperties(ignoreUnknown=true) data class SaleDetail( @JsonProperty("name") @get:JsonProperty("name") val name: String, @JsonProperty("sale") @get:JsonProperty("sale") val sale: String, @JsonProperty("sale_key") @get:JsonProperty("sale_key") val saleKey: String, @JsonProperty("store") @get:JsonProperty("store") val store: Store, @JsonProperty("description") @get:JsonProperty("description") val description: String?, @JsonProperty("sale_url") @get:JsonProperty("sale_url") val saleUrl: String, @JsonProperty("begins") @get:JsonProperty("begins") val begins: Instant, @JsonProperty("ends") @get:JsonProperty("ends") val ends: Instant?, @JsonProperty("image_urls") @get:JsonProperty("image_urls") val imageUrls: Any, @JsonProperty("products") @get:JsonProperty("products") val products: List? ) : Serializable { fun toJsonString(): String = com.gilt.public_.api.models.JacksonObjectMapperFactory.create().writeValueAsString(this) companion object { fun parseJson(json: String): SaleDetail = com.gilt.public_.api.models.JacksonObjectMapperFactory.create().readValue( json, SaleDetail::class.java) } }