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 /** * This code was generated by [models.generator.kotlin.KotlinGenerator] */ @JsonIgnoreProperties(ignoreUnknown=true) data class PoolRetiring( @JsonProperty("ticker_name") @get:JsonProperty("ticker_name") val tickerName: String?, @JsonProperty("pool_id") @get:JsonProperty("pool_id") val poolId: String, @JsonProperty("certificate_index") @get:JsonProperty("certificate_index") val certificateIndex: Int, @JsonProperty("epoch_number") @get:JsonProperty("epoch_number") val epochNumber: Long, @JsonProperty("block_number") @get:JsonProperty("block_number") val blockNumber: Long, @JsonProperty("retiring_at_epoch") @get:JsonProperty("retiring_at_epoch") val retiringAtEpoch: Long, @JsonProperty("tx_hash") @get:JsonProperty("tx_hash") val txHash: String ) : Serializable { fun toJsonString(): String = io.gimbalabs.hilltop.api.v0.models.JacksonObjectMapperFactory.create().writeValueAsString(this) companion object { fun parseJson(json: String): PoolRetiring = io.gimbalabs.hilltop.api.v0.models.JacksonObjectMapperFactory.create().readValue( json, PoolRetiring::class.java) } }