package io.gimbalabs.hilltop.api.v0.models import com.fasterxml.jackson.annotation.JsonIgnoreProperties import com.fasterxml.jackson.annotation.JsonProperty import java.io.Serializable import kotlin.Int import kotlin.Long import kotlin.String import org.threeten.bp.Instant /** * This code was generated by [models.generator.kotlin.KotlinGenerator] */ @JsonIgnoreProperties(ignoreUnknown=true) data class Epoch( @JsonProperty("out_sum") @get:JsonProperty("out_sum") val outSum: Long, @JsonProperty("fees") @get:JsonProperty("fees") val fees: Long, @JsonProperty("tx_count") @get:JsonProperty("tx_count") val txCount: Int, @JsonProperty("blk_count") @get:JsonProperty("blk_count") val blkCount: Int, @JsonProperty("number") @get:JsonProperty("number") val number: Int, @JsonProperty("start_time") @get:JsonProperty("start_time") val startTime: Instant, @JsonProperty("end_time") @get:JsonProperty("end_time") val endTime: Instant ) : Serializable { fun toJsonString(): String = io.gimbalabs.hilltop.api.v0.models.JacksonObjectMapperFactory.create().writeValueAsString(this) companion object { fun parseJson(json: String): Epoch = io.gimbalabs.hilltop.api.v0.models.JacksonObjectMapperFactory.create().readValue( json, Epoch::class.java) } }