package io.example.interface_.v0.models import com.fasterxml.jackson.annotation.JsonIgnoreProperties import com.fasterxml.jackson.annotation.JsonProperty import java.io.Serializable import kotlin.String import org.threeten.bp.Instant /** * This code was generated by [models.generator.kotlin.KotlinGenerator] */ @JsonIgnoreProperties(ignoreUnknown=true) data class User( @JsonProperty("id") @get:JsonProperty("id") val id: String, @JsonProperty("email") @get:JsonProperty("email") val email: String?, @JsonProperty("name") @get:JsonProperty("name") val name: String?, @JsonProperty("registration_date") @get:JsonProperty("registration_date") val registrationDate: Instant ) : Serializable { fun toJsonString(): String = io.example.interface_.v0.models.JacksonObjectMapperFactory.create().writeValueAsString(this) companion object { fun parseJson(json: String): User = io.example.interface_.v0.models.JacksonObjectMapperFactory.create().readValue( json, User::class.java) } }