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 nm.joglog.api.v0.enums.patch.Operation import nm.joglog.api.v0.enums.time.patch.Path import nm.joglog.api.v0.models.time.patch.Entry /** * This code was generated by [models.generator.kotlin.KotlinGenerator] * Time patch entry */ @JsonIgnoreProperties(ignoreUnknown=true) data class `time.patch.Entry`( @JsonProperty("op") @get:JsonProperty("op") val op: patch.Operation, @JsonProperty("path") @get:JsonProperty("path") val path: time.patch.Path, @JsonProperty("value") @get:JsonProperty("value") val value: Int ) : Serializable { fun toJsonString(): String = nm.joglog.api.v0.models.JacksonObjectMapperFactory.create().writeValueAsString(this) companion object { fun parseJson(json: String): Entry = nm.joglog.api.v0.models.JacksonObjectMapperFactory.create().readValue( json, Entry::class.java) } }