package solutions.poole.questlog.api.v0.models import com.fasterxml.jackson.annotation.JsonIgnoreProperties import com.fasterxml.jackson.annotation.JsonProperty import java.io.Serializable import java.util.UUID import kotlin.String import kotlin.collections.List /** * This code was generated by [models.generator.kotlin.KotlinGenerator] * Represents an adventure. */ @JsonIgnoreProperties(ignoreUnknown=true) data class Adventure( @JsonProperty("guid") @get:JsonProperty("guid") val guid: UUID, @JsonProperty("name") @get:JsonProperty("name") val name: String, @JsonProperty("description") @get:JsonProperty("description") val description: String?, @JsonProperty("location") @get:JsonProperty("location") val location: String?, @JsonProperty("participants") @get:JsonProperty("participants") val participants: List?, @JsonProperty("pack_lists") @get:JsonProperty("pack_lists") val packLists: List? ) : Serializable { fun toJsonString(): String = solutions.poole.questlog.api.v0.models.JacksonObjectMapperFactory.create().writeValueAsString(this) companion object { fun parseJson(json: String): Adventure = solutions.poole.questlog.api.v0.models.JacksonObjectMapperFactory.create().readValue( json, Adventure::class.java) } }