package de.nccloud.common.v0.models import com.fasterxml.jackson.annotation.JsonIgnoreProperties import com.fasterxml.jackson.annotation.JsonProperty import java.io.Serializable import kotlin.Any import kotlin.String /** * This code was generated by [models.generator.kotlin.KotlinGenerator] * An error returned on failed API requests. */ @JsonIgnoreProperties(ignoreUnknown=true) data class GenericError( @JsonProperty("links") @get:JsonProperty("links") val links: ErrorLinks?, @JsonProperty("code") @get:JsonProperty("code") val code: String, @JsonProperty("title") @get:JsonProperty("title") val title: String, @JsonProperty("detail") @get:JsonProperty("detail") val detail: String, @JsonProperty("source") @get:JsonProperty("source") val source: ErrorSource?, @JsonProperty("meta") @get:JsonProperty("meta") val meta: Any? ) : Serializable { fun toJsonString(): String = de.nccloud.common.v0.models.JacksonObjectMapperFactory.create().writeValueAsString(this) companion object { fun parseJson(json: String): GenericError = de.nccloud.common.v0.models.JacksonObjectMapperFactory.create().readValue( json, GenericError::class.java) } }