package com.hbc.svc.sundial.v2.models import com.fasterxml.jackson.annotation.JsonIgnoreProperties import com.fasterxml.jackson.annotation.JsonProperty import java.io.Serializable import java.util.UUID import kotlin.String import org.threeten.bp.Instant /** * This code was generated by [models.generator.kotlin.KotlinGenerator] */ @JsonIgnoreProperties(ignoreUnknown=true) data class LogEntry( @JsonProperty("log_entry_id") @get:JsonProperty("log_entry_id") val logEntryId: UUID, @JsonProperty("when") @get:JsonProperty("when") val when_: Instant, @JsonProperty("source") @get:JsonProperty("source") val source: String, @JsonProperty("message") @get:JsonProperty("message") val message: String ) : Serializable { fun toJsonString(): String = com.hbc.svc.sundial.v2.models.JacksonObjectMapperFactory.create().writeValueAsString(this) companion object { fun parseJson(json: String): LogEntry = com.hbc.svc.sundial.v2.models.JacksonObjectMapperFactory.create().readValue( json, LogEntry::class.java) } }