package com.edsancha.medallia.api.v0.models import com.fasterxml.jackson.annotation.JsonIgnoreProperties import com.fasterxml.jackson.annotation.JsonProperty import com.fasterxml.jackson.annotation.JsonSubTypes import com.fasterxml.jackson.annotation.JsonTypeInfo import java.io.Serializable import kotlin.Int import kotlin.String import kotlin.collections.List /** * This code was generated by [models.generator.kotlin.KotlinGenerator] * Represents the component or fields to be filled by the user */ @JsonIgnoreProperties(ignoreUnknown=true) @JsonTypeInfo( use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, property = "component", defaultImpl = com.edsancha.medallia.api.v0.models.FeedbackUnion.FeedbackUnionUndefined::class ) @JsonSubTypes( JsonSubTypes.Type(value = com.edsancha.medallia.api.v0.models.FeedbackUnion.FeedbackNps::class, name = "nps"), JsonSubTypes.Type(value = com.edsancha.medallia.api.v0.models.FeedbackUnion.FeedbackTextArea::class, name = "textArea"), JsonSubTypes.Type(value = com.edsancha.medallia.api.v0.models.FeedbackUnion.FeedbackTextInput::class, name = "textInput"), JsonSubTypes.Type(value = com.edsancha.medallia.api.v0.models.FeedbackUnion.FeedbackRadioSelector::class, name = "radio"), JsonSubTypes.Type(value = com.edsancha.medallia.api.v0.models.FeedbackUnion.FeedbackCheckbox::class, name = "checkbox"), JsonSubTypes.Type(value = com.edsancha.medallia.api.v0.models.FeedbackUnion.FeedbackDropdown::class, name = "select"), JsonSubTypes.Type(value = com.edsancha.medallia.api.v0.models.FeedbackUnion.FeedbackGrading::class, name = "grading"), JsonSubTypes.Type(value = com.edsancha.medallia.api.v0.models.FeedbackUnion.FeedbackGrading0to10::class, name = "grading0to10"), JsonSubTypes.Type(value = com.edsancha.medallia.api.v0.models.FeedbackUnion.FeedbackGrading1to10::class, name = "grading1to10"), JsonSubTypes.Type(value = com.edsancha.medallia.api.v0.models.FeedbackUnion.FeedbackUnionUndefined::class) ) sealed class FeedbackUnion { /** * This code was generated by [models.generator.kotlin.KotlinGenerator] */ @JsonIgnoreProperties(ignoreUnknown=true) @JsonTypeInfo(use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NONE) data class FeedbackCheckbox( @JsonProperty("index") @get:JsonProperty("index") val index: Int, @JsonProperty("id") @get:JsonProperty("id") val id: Int, @JsonProperty("unique_name") @get:JsonProperty("unique_name") val uniqueName: String, @JsonProperty("value") @get:JsonProperty("value") val value: List, @JsonProperty("type") @get:JsonProperty("type") val type: String ) : FeedbackUnion(), Serializable { fun toJsonString(): String = com.edsancha.medallia.api.v0.models.JacksonObjectMapperFactory.create().writeValueAsString(this) companion object { fun parseJson(json: String): FeedbackCheckbox = com.edsancha.medallia.api.v0.models.JacksonObjectMapperFactory.create().readValue( json, FeedbackCheckbox::class.java) } } /** * This code was generated by [models.generator.kotlin.KotlinGenerator] */ @JsonIgnoreProperties(ignoreUnknown=true) @JsonTypeInfo(use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NONE) data class FeedbackDropdown( @JsonProperty("index") @get:JsonProperty("index") val index: Int, @JsonProperty("id") @get:JsonProperty("id") val id: Int, @JsonProperty("unique_name") @get:JsonProperty("unique_name") val uniqueName: String, @JsonProperty("value") @get:JsonProperty("value") val value: Int, @JsonProperty("type") @get:JsonProperty("type") val type: String ) : FeedbackUnion(), Serializable { fun toJsonString(): String = com.edsancha.medallia.api.v0.models.JacksonObjectMapperFactory.create().writeValueAsString(this) companion object { fun parseJson(json: String): FeedbackDropdown = com.edsancha.medallia.api.v0.models.JacksonObjectMapperFactory.create().readValue( json, FeedbackDropdown::class.java) } } /** * This code was generated by [models.generator.kotlin.KotlinGenerator] */ @JsonIgnoreProperties(ignoreUnknown=true) @JsonTypeInfo(use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NONE) data class FeedbackGrading( @JsonProperty("index") @get:JsonProperty("index") val index: Int, @JsonProperty("id") @get:JsonProperty("id") val id: Int, @JsonProperty("unique_name") @get:JsonProperty("unique_name") val uniqueName: String, @JsonProperty("value") @get:JsonProperty("value") val value: Int, @JsonProperty("type") @get:JsonProperty("type") val type: String ) : FeedbackUnion(), Serializable { fun toJsonString(): String = com.edsancha.medallia.api.v0.models.JacksonObjectMapperFactory.create().writeValueAsString(this) companion object { fun parseJson(json: String): FeedbackGrading = com.edsancha.medallia.api.v0.models.JacksonObjectMapperFactory.create().readValue( json, FeedbackGrading::class.java) } } /** * This code was generated by [models.generator.kotlin.KotlinGenerator] */ @JsonIgnoreProperties(ignoreUnknown=true) @JsonTypeInfo(use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NONE) data class FeedbackGrading0to10( @JsonProperty("index") @get:JsonProperty("index") val index: Int, @JsonProperty("id") @get:JsonProperty("id") val id: Int, @JsonProperty("unique_name") @get:JsonProperty("unique_name") val uniqueName: String, @JsonProperty("value") @get:JsonProperty("value") val value: Int, @JsonProperty("type") @get:JsonProperty("type") val type: String ) : FeedbackUnion(), Serializable { fun toJsonString(): String = com.edsancha.medallia.api.v0.models.JacksonObjectMapperFactory.create().writeValueAsString(this) companion object { fun parseJson(json: String): FeedbackGrading0to10 = com.edsancha.medallia.api.v0.models.JacksonObjectMapperFactory.create().readValue( json, FeedbackGrading0to10::class.java) } } /** * This code was generated by [models.generator.kotlin.KotlinGenerator] */ @JsonIgnoreProperties(ignoreUnknown=true) @JsonTypeInfo(use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NONE) data class FeedbackGrading1to10( @JsonProperty("index") @get:JsonProperty("index") val index: Int, @JsonProperty("id") @get:JsonProperty("id") val id: Int, @JsonProperty("unique_name") @get:JsonProperty("unique_name") val uniqueName: String, @JsonProperty("value") @get:JsonProperty("value") val value: Int, @JsonProperty("type") @get:JsonProperty("type") val type: String ) : FeedbackUnion(), Serializable { fun toJsonString(): String = com.edsancha.medallia.api.v0.models.JacksonObjectMapperFactory.create().writeValueAsString(this) companion object { fun parseJson(json: String): FeedbackGrading1to10 = com.edsancha.medallia.api.v0.models.JacksonObjectMapperFactory.create().readValue( json, FeedbackGrading1to10::class.java) } } /** * This code was generated by [models.generator.kotlin.KotlinGenerator] */ @JsonIgnoreProperties(ignoreUnknown=true) @JsonTypeInfo(use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NONE) data class FeedbackNps( @JsonProperty("index") @get:JsonProperty("index") val index: Int, @JsonProperty("id") @get:JsonProperty("id") val id: Int, @JsonProperty("unique_name") @get:JsonProperty("unique_name") val uniqueName: String, @JsonProperty("value") @get:JsonProperty("value") val value: Int, @JsonProperty("type") @get:JsonProperty("type") val type: String ) : FeedbackUnion(), Serializable { fun toJsonString(): String = com.edsancha.medallia.api.v0.models.JacksonObjectMapperFactory.create().writeValueAsString(this) companion object { fun parseJson(json: String): FeedbackNps = com.edsancha.medallia.api.v0.models.JacksonObjectMapperFactory.create().readValue( json, FeedbackNps::class.java) } } /** * This code was generated by [models.generator.kotlin.KotlinGenerator] */ @JsonIgnoreProperties(ignoreUnknown=true) @JsonTypeInfo(use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NONE) data class FeedbackRadioSelector( @JsonProperty("index") @get:JsonProperty("index") val index: Int, @JsonProperty("id") @get:JsonProperty("id") val id: Int, @JsonProperty("unique_name") @get:JsonProperty("unique_name") val uniqueName: String, @JsonProperty("value") @get:JsonProperty("value") val value: Int, @JsonProperty("type") @get:JsonProperty("type") val type: String ) : FeedbackUnion(), Serializable { fun toJsonString(): String = com.edsancha.medallia.api.v0.models.JacksonObjectMapperFactory.create().writeValueAsString(this) companion object { fun parseJson(json: String): FeedbackRadioSelector = com.edsancha.medallia.api.v0.models.JacksonObjectMapperFactory.create().readValue( json, FeedbackRadioSelector::class.java) } } /** * This code was generated by [models.generator.kotlin.KotlinGenerator] */ @JsonIgnoreProperties(ignoreUnknown=true) @JsonTypeInfo(use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NONE) data class FeedbackTextArea( @JsonProperty("index") @get:JsonProperty("index") val index: Int, @JsonProperty("id") @get:JsonProperty("id") val id: Int, @JsonProperty("unique_name") @get:JsonProperty("unique_name") val uniqueName: String, @JsonProperty("value") @get:JsonProperty("value") val value: String, @JsonProperty("type") @get:JsonProperty("type") val type: String ) : FeedbackUnion(), Serializable { fun toJsonString(): String = com.edsancha.medallia.api.v0.models.JacksonObjectMapperFactory.create().writeValueAsString(this) companion object { fun parseJson(json: String): FeedbackTextArea = com.edsancha.medallia.api.v0.models.JacksonObjectMapperFactory.create().readValue( json, FeedbackTextArea::class.java) } } /** * This code was generated by [models.generator.kotlin.KotlinGenerator] */ @JsonIgnoreProperties(ignoreUnknown=true) @JsonTypeInfo(use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NONE) data class FeedbackTextInput( @JsonProperty("index") @get:JsonProperty("index") val index: Int, @JsonProperty("id") @get:JsonProperty("id") val id: Int, @JsonProperty("unique_name") @get:JsonProperty("unique_name") val uniqueName: String, @JsonProperty("value") @get:JsonProperty("value") val value: String, @JsonProperty("type") @get:JsonProperty("type") val type: String ) : FeedbackUnion(), Serializable { fun toJsonString(): String = com.edsancha.medallia.api.v0.models.JacksonObjectMapperFactory.create().writeValueAsString(this) companion object { fun parseJson(json: String): FeedbackTextInput = com.edsancha.medallia.api.v0.models.JacksonObjectMapperFactory.create().readValue( json, FeedbackTextInput::class.java) } } @JsonTypeInfo(use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NONE) object FeedbackUnionUndefined : FeedbackUnion() companion object { fun parseJson(json: String): FeedbackUnion = com.edsancha.medallia.api.v0.models.JacksonObjectMapperFactory.create().readValue( json, FeedbackUnion::class.java) } }