package com.paintbatch.models import com.fasterxml.jackson.annotation.JsonIgnoreProperties import com.fasterxml.jackson.annotation.JsonProperty import com.paintbatch.enums.Sheen import java.io.Serializable import kotlin.Int import kotlin.String /** * This code was generated by [models.generator.kotlin.KotlinGenerator] * paint and its sheen */ @JsonIgnoreProperties(ignoreUnknown=true) data class Paint( @JsonProperty("id") @get:JsonProperty("id") val id: Int, @JsonProperty("sheen") @get:JsonProperty("sheen") val sheen: Sheen ) : Serializable { fun toJsonString(): String = com.paintbatch.models.JacksonObjectMapperFactory.create().writeValueAsString(this) companion object { fun parseJson(json: String): Paint = com.paintbatch.models.JacksonObjectMapperFactory.create().readValue( json, Paint::class.java) } }