package bombas.storeback.api.v0.models import com.fasterxml.jackson.annotation.JsonIgnoreProperties import com.fasterxml.jackson.annotation.JsonProperty import java.io.Serializable import kotlin.Boolean import kotlin.Long import kotlin.String import kotlin.collections.List /** * This code was generated by [models.generator.kotlin.KotlinGenerator] */ @JsonIgnoreProperties(ignoreUnknown=true) data class Variant( @JsonProperty("id") @get:JsonProperty("id") val id: Long?, @JsonProperty("product_id") @get:JsonProperty("product_id") val productId: Long?, @JsonProperty("sku") @get:JsonProperty("sku") val sku: String?, @JsonProperty("title") @get:JsonProperty("title") val title: String?, @JsonProperty("is_available") @get:JsonProperty("is_available") val isAvailable: Boolean?, @JsonProperty("price") @get:JsonProperty("price") val price: Price?, @JsonProperty("shipping") @get:JsonProperty("shipping") val shipping: Shipping?, @JsonProperty("created_at") @get:JsonProperty("created_at") val createdAt: String?, @JsonProperty("updated_at") @get:JsonProperty("updated_at") val updatedAt: String?, @JsonProperty("sizes") @get:JsonProperty("sizes") val sizes: List? ) : Serializable { fun toJsonString(): String = bombas.storeback.api.v0.models.JacksonObjectMapperFactory.create().writeValueAsString(this) companion object { fun parseJson(json: String): Variant = bombas.storeback.api.v0.models.JacksonObjectMapperFactory.create().readValue( json, Variant::class.java) } }