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 MetadataEntry( @JsonProperty("metadata_entry_id") @get:JsonProperty("metadata_entry_id") val metadataEntryId: UUID, @JsonProperty("when") @get:JsonProperty("when") val when_: Instant, @JsonProperty("key") @get:JsonProperty("key") val key: String, @JsonProperty("value") @get:JsonProperty("value") val value: String ) : Serializable { fun toJsonString(): String = com.hbc.svc.sundial.v2.models.JacksonObjectMapperFactory.create().writeValueAsString(this) companion object { fun parseJson(json: String): MetadataEntry = com.hbc.svc.sundial.v2.models.JacksonObjectMapperFactory.create().readValue( json, MetadataEntry::class.java) } }