package com.edsancha.medallia.api.v0.models import com.edsancha.medallia.api.v0.enums.RatingViewType import com.fasterxml.jackson.annotation.JsonIgnoreProperties import com.fasterxml.jackson.annotation.JsonProperty import java.io.Serializable import kotlin.Boolean import kotlin.Int import kotlin.String /** * This code was generated by [models.generator.kotlin.KotlinGenerator] */ @JsonIgnoreProperties(ignoreUnknown=true) data class ComponentGrading( @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("required") @get:JsonProperty("required") val required: Boolean, @JsonProperty("label") @get:JsonProperty("label") val label: String, @JsonProperty("ratingViewType") @get:JsonProperty("ratingViewType") val ratingViewType: RatingViewType, @JsonProperty("description") @get:JsonProperty("description") val description: String? ) : Serializable { fun toJsonString(): String = com.edsancha.medallia.api.v0.models.JacksonObjectMapperFactory.create().writeValueAsString(this) companion object { fun parseJson(json: String): ComponentGrading = com.edsancha.medallia.api.v0.models.JacksonObjectMapperFactory.create().readValue( json, ComponentGrading::class.java) } }