package io.grhodes.code.deploy.dashboard.v0.models import com.fasterxml.jackson.annotation.JsonIgnoreProperties import com.fasterxml.jackson.annotation.JsonProperty import java.io.Serializable import kotlin.String import org.threeten.bp.Instant /** * This code was generated by [models.generator.kotlin.KotlinGenerator] */ @JsonIgnoreProperties(ignoreUnknown=true) data class DeploymentLifecycleEvent( @JsonProperty("name") @get:JsonProperty("name") val name: String, @JsonProperty("start_time") @get:JsonProperty("start_time") val startTime: Instant, @JsonProperty("end_time") @get:JsonProperty("end_time") val endTime: Instant, @JsonProperty("status") @get:JsonProperty("status") val status: String, @JsonProperty("error_log_tail") @get:JsonProperty("error_log_tail") val errorLogTail: String?, @JsonProperty("error_message") @get:JsonProperty("error_message") val errorMessage: String?, @JsonProperty("script_name") @get:JsonProperty("script_name") val scriptName: String? ) : Serializable { fun toJsonString(): String = io.grhodes.code.deploy.dashboard.v0.models.JacksonObjectMapperFactory.create().writeValueAsString(this) companion object { fun parseJson(json: String): DeploymentLifecycleEvent = io.grhodes.code.deploy.dashboard.v0.models.JacksonObjectMapperFactory.create().readValue( json, DeploymentLifecycleEvent::class.java) } }