package nm.joglog.api.v0.models import com.fasterxml.jackson.annotation.JsonIgnoreProperties import com.fasterxml.jackson.annotation.JsonProperty import java.io.Serializable import kotlin.String import nm.joglog.api.v0.models.user.Minimal /** * This code was generated by [models.generator.kotlin.KotlinGenerator] * User */ @JsonIgnoreProperties(ignoreUnknown=true) data class `user.Minimal`( @JsonProperty("username") @get:JsonProperty("username") val username: String, @JsonProperty("password") @get:JsonProperty("password") val password: String ) : Serializable { fun toJsonString(): String = nm.joglog.api.v0.models.JacksonObjectMapperFactory.create().writeValueAsString(this) companion object { fun parseJson(json: String): Minimal = nm.joglog.api.v0.models.JacksonObjectMapperFactory.create().readValue( json, Minimal::class.java) } }