package solutions.poole.questlog.api.v0.models import com.fasterxml.jackson.annotation.JsonIgnoreProperties import com.fasterxml.jackson.annotation.JsonProperty import java.io.Serializable import kotlin.String import kotlin.collections.List /** * This code was generated by [models.generator.kotlin.KotlinGenerator] * Represents a adventure participant and what items they will bring. */ @JsonIgnoreProperties(ignoreUnknown=true) data class Participant( @JsonProperty("person") @get:JsonProperty("person") val person: Person, @JsonProperty("items") @get:JsonProperty("items") val items: List? ) : Serializable { fun toJsonString(): String = solutions.poole.questlog.api.v0.models.JacksonObjectMapperFactory.create().writeValueAsString(this) companion object { fun parseJson(json: String): Participant = solutions.poole.questlog.api.v0.models.JacksonObjectMapperFactory.create().readValue( json, Participant::class.java) } }