package nm.joglog.api.v0.models import com.fasterxml.jackson.annotation.JsonIgnoreProperties import com.fasterxml.jackson.annotation.JsonProperty import java.io.Serializable import kotlin.String import nm.joglog.api.v0.enums.StringOrInteger import nm.joglog.api.v0.enums.patch.Operation import nm.joglog.api.v0.enums.user.patch.Path import nm.joglog.api.v0.models.user.patch.Entry /** * This code was generated by [models.generator.kotlin.KotlinGenerator] * User patch entry */ @JsonIgnoreProperties(ignoreUnknown=true) data class `user.patch.Entry`( @JsonProperty("op") @get:JsonProperty("op") val op: patch.Operation, @JsonProperty("path") @get:JsonProperty("path") val path: user.patch.Path, @JsonProperty("value") @get:JsonProperty("value") val value: StringOrInteger ) : 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) } }