package io.apibuilder.api.v0.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 token gives a user access to the API. */ @JsonIgnoreProperties(ignoreUnknown=true) data class Token( @JsonProperty("guid") @get:JsonProperty("guid") val guid: UUID, @JsonProperty("user") @get:JsonProperty("user") val user: User, @JsonProperty("masked_token") @get:JsonProperty("masked_token") val maskedToken: String, @JsonProperty("description") @get:JsonProperty("description") val description: String?, @JsonProperty("audit") @get:JsonProperty("audit") val audit: io.apibuilder.common.v0.models.Audit ) : Serializable { fun toJsonString(): String = io.apibuilder.api.v0.models.JacksonObjectMapperFactory.create().writeValueAsString(this) companion object { fun parseJson(json: String): Token = io.apibuilder.api.v0.models.JacksonObjectMapperFactory.create().readValue( json, Token::class.java) } }