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.Double import kotlin.Int import kotlin.Long import kotlin.String /** * This code was generated by [models.generator.kotlin.KotlinGenerator] */ @JsonIgnoreProperties(ignoreUnknown=true) data class PoolUpdate( @JsonProperty("epoch_number") @get:JsonProperty("epoch_number") val epochNumber: Int, @JsonProperty("block_number") @get:JsonProperty("block_number") val blockNumber: Long, @JsonProperty("tx_hash") @get:JsonProperty("tx_hash") val txHash: String, @JsonProperty("pool_ticker_name") @get:JsonProperty("pool_ticker_name") val poolTickerName: String?, @JsonProperty("pool_bech32_id") @get:JsonProperty("pool_bech32_id") val poolBech32Id: String, @JsonProperty("certificate_index") @get:JsonProperty("certificate_index") val certificateIndex: Int, @JsonProperty("vrf_key_hash") @get:JsonProperty("vrf_key_hash") val vrfKeyHash: String, @JsonProperty("pledge") @get:JsonProperty("pledge") val pledge: Long, @JsonProperty("reward_address") @get:JsonProperty("reward_address") val rewardAddress: String, @JsonProperty("active_epoch_number") @get:JsonProperty("active_epoch_number") val activeEpochNumber: Long, @JsonProperty("margin") @get:JsonProperty("margin") val margin: Double, @JsonProperty("fixed_cost") @get:JsonProperty("fixed_cost") val fixedCost: Long ) : Serializable { fun toJsonString(): String = io.gimbalabs.hilltop.api.v0.models.JacksonObjectMapperFactory.create().writeValueAsString(this) companion object { fun parseJson(json: String): PoolUpdate = io.gimbalabs.hilltop.api.v0.models.JacksonObjectMapperFactory.create().readValue( json, PoolUpdate::class.java) } }