package com.afrosoft.apibuilder.api.v0.models import com.fasterxml.jackson.annotation.JsonIgnoreProperties import com.fasterxml.jackson.annotation.JsonProperty import java.io.Serializable import kotlin.String /** * This code was generated by [models.generator.kotlin.KotlinGenerator] * Represents the result of a successful authorization */ @JsonIgnoreProperties(ignoreUnknown=true) data class Authentication( @JsonProperty("user") @get:JsonProperty("user") val user: User, @JsonProperty("session") @get:JsonProperty("session") val session: Session ) : Serializable { fun toJsonString(): String = com.afrosoft.apibuilder.api.v0.models.JacksonObjectMapperFactory.create().writeValueAsString(this) companion object { fun parseJson(json: String): Authentication = com.afrosoft.apibuilder.api.v0.models.JacksonObjectMapperFactory.create().readValue( json, Authentication::class.java) } }