package com.gilt.ionroller.api.v1.models import com.fasterxml.jackson.annotation.JsonIgnoreProperties import com.fasterxml.jackson.annotation.JsonProperty import java.io.Serializable import kotlin.String /** * This code was generated by [models.generator.kotlin.KotlinGenerator] * Desired future state of service */ @JsonIgnoreProperties(ignoreUnknown=true) data class ServiceDesiredState( @JsonProperty("current") @get:JsonProperty("current") val current: Release?, @JsonProperty("next") @get:JsonProperty("next") val next: Release?, @JsonProperty("future") @get:JsonProperty("future") val future: Release? ) : Serializable { fun toJsonString(): String = com.gilt.ionroller.api.v1.models.JacksonObjectMapperFactory.create().writeValueAsString(this) companion object { fun parseJson(json: String): ServiceDesiredState = com.gilt.ionroller.api.v1.models.JacksonObjectMapperFactory.create().readValue( json, ServiceDesiredState::class.java) } }