package com.catalystsquad.catalyst.squad.hello.world.example.api.v1.models import com.fasterxml.jackson.annotation.JsonIgnoreProperties import com.fasterxml.jackson.annotation.JsonProperty import java.io.Serializable import java.util.UUID import kotlin.String /** * This code was generated by [models.generator.kotlin.KotlinGenerator] * A Hello with a name and id */ @JsonIgnoreProperties(ignoreUnknown=true) data class Hello( @JsonProperty("id") @get:JsonProperty("id") val id: UUID, @JsonProperty("name") @get:JsonProperty("name") val name: String ) : Serializable { fun toJsonString(): String = com.catalystsquad.catalyst.squad.hello.world.example.api.v1.models.JacksonObjectMapperFactory.create().writeValueAsString(this) companion object { fun parseJson(json: String): Hello = com.catalystsquad.catalyst.squad.hello.world.example.api.v1.models.JacksonObjectMapperFactory.create().readValue( json, Hello::class.java) } }