package io.github.mkows.playground.api.v0.models import com.fasterxml.jackson.annotation.JsonIgnoreProperties import com.fasterxml.jackson.annotation.JsonProperty import java.io.Serializable import kotlin.Int import kotlin.String /** * This code was generated by [models.generator.kotlin.KotlinGenerator] */ @JsonIgnoreProperties(ignoreUnknown=true) data class Error( @JsonProperty("code") @get:JsonProperty("code") val code: Int, @JsonProperty("message") @get:JsonProperty("message") val message: String, @JsonProperty("details") @get:JsonProperty("details") val details: String? ) : Serializable { fun toJsonString(): String = io.github.mkows.playground.api.v0.models.JacksonObjectMapperFactory.create().writeValueAsString(this) companion object { fun parseJson(json: String): Error = io.github.mkows.playground.api.v0.models.JacksonObjectMapperFactory.create().readValue( json, Error::class.java) } }