package bombas.storeback.api.v0.models import com.fasterxml.jackson.annotation.JsonIgnoreProperties import com.fasterxml.jackson.annotation.JsonProperty import java.io.Serializable import kotlin.Any import kotlin.Int import kotlin.Long import kotlin.String import kotlin.collections.List /** * This code was generated by [models.generator.kotlin.KotlinGenerator] */ @JsonIgnoreProperties(ignoreUnknown=true) data class Product( @JsonProperty("id") @get:JsonProperty("id") val id: Long?, @JsonProperty("title") @get:JsonProperty("title") val title: String?, @JsonProperty("handle") @get:JsonProperty("handle") val handle: String?, @JsonProperty("description") @get:JsonProperty("description") val description: String?, @JsonProperty("description_html") @get:JsonProperty("description_html") val descriptionHtml: String?, @JsonProperty("item_count") @get:JsonProperty("item_count") val itemCount: Int?, @JsonProperty("product_type") @get:JsonProperty("product_type") val productType: String?, @JsonProperty("gender") @get:JsonProperty("gender") val gender: String?, @JsonProperty("colors") @get:JsonProperty("colors") val colors: List?, @JsonProperty("sizes") @get:JsonProperty("sizes") val sizes: List?, @JsonProperty("images") @get:JsonProperty("images") val images: List?, @JsonProperty("variants") @get:JsonProperty("variants") val variants: List?, @JsonProperty("breadcrumbs") @get:JsonProperty("breadcrumbs") val breadcrumbs: List?, @JsonProperty("details") @get:JsonProperty("details") val details: List?, @JsonProperty("created_at") @get:JsonProperty("created_at") val createdAt: String?, @JsonProperty("updated_at") @get:JsonProperty("updated_at") val updatedAt: String? ) : Serializable { fun toJsonString(): String = bombas.storeback.api.v0.models.JacksonObjectMapperFactory.create().writeValueAsString(this) companion object { fun parseJson(json: String): Product = bombas.storeback.api.v0.models.JacksonObjectMapperFactory.create().readValue( json, Product::class.java) } }