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.String /** * This code was generated by [models.generator.kotlin.KotlinGenerator] */ @JsonIgnoreProperties(ignoreUnknown=true) data class Price( @JsonProperty("msrp") @get:JsonProperty("msrp") val msrp: String?, @JsonProperty("price") @get:JsonProperty("price") val price: String?, @JsonProperty("isDiscounted") @get:JsonProperty("isDiscounted") val isDiscounted: Boolean?, @JsonProperty("percentOff") @get:JsonProperty("percentOff") val percentOff: String? ) : Serializable { fun toJsonString(): String = bombas.storeback.api.v0.models.JacksonObjectMapperFactory.create().writeValueAsString(this) companion object { fun parseJson(json: String): Price = bombas.storeback.api.v0.models.JacksonObjectMapperFactory.create().readValue( json, Price::class.java) } }