package nm.joglog.api.v0.models import com.fasterxml.jackson.annotation.JsonIgnoreProperties import com.fasterxml.jackson.annotation.JsonProperty import java.io.Serializable import kotlin.Int import kotlin.String import org.threeten.bp.Instant /** * This code was generated by [models.generator.kotlin.KotlinGenerator] * Time entry */ @JsonIgnoreProperties(ignoreUnknown=true) data class Time( @JsonProperty("id") @get:JsonProperty("id") val id: Int, @JsonProperty("distance") @get:JsonProperty("distance") val distance: Int, @JsonProperty("time") @get:JsonProperty("time") val time: Int, @JsonProperty("createdAt") @get:JsonProperty("createdAt") val createdAt: Instant, @JsonProperty("updatedAt") @get:JsonProperty("updatedAt") val updatedAt: Instant ) : Serializable { fun toJsonString(): String = nm.joglog.api.v0.models.JacksonObjectMapperFactory.create().writeValueAsString(this) companion object { fun parseJson(json: String): Time = nm.joglog.api.v0.models.JacksonObjectMapperFactory.create().readValue( json, Time::class.java) } }