package com.hbc.svc.sundial.v2.models import com.fasterxml.jackson.annotation.JsonIgnoreProperties import com.fasterxml.jackson.annotation.JsonProperty import com.hbc.svc.sundial.v2.enums.ProcessStatus import java.io.Serializable import java.util.UUID import kotlin.String import kotlin.collections.List import org.threeten.bp.Instant /** * This code was generated by [models.generator.kotlin.KotlinGenerator] */ @JsonIgnoreProperties(ignoreUnknown=true) data class Process( @JsonProperty("process_id") @get:JsonProperty("process_id") val processId: UUID, @JsonProperty("process_definition_name") @get:JsonProperty("process_definition_name") val processDefinitionName: String, @JsonProperty("start_time") @get:JsonProperty("start_time") val startTime: Instant, @JsonProperty("status") @get:JsonProperty("status") val status: ProcessStatus, @JsonProperty("task") @get:JsonProperty("task") val task: List ) : Serializable { fun toJsonString(): String = com.hbc.svc.sundial.v2.models.JacksonObjectMapperFactory.create().writeValueAsString(this) companion object { fun parseJson(json: String): Process = com.hbc.svc.sundial.v2.models.JacksonObjectMapperFactory.create().readValue( json, Process::class.java) } }