package io.flow.github.v0.models import com.fasterxml.jackson.annotation.JsonIgnoreProperties import com.fasterxml.jackson.annotation.JsonProperty import io.flow.github.v0.enums.OwnerType import java.io.Serializable import kotlin.Long import kotlin.String /** * This code was generated by [models.generator.kotlin.KotlinGenerator] */ @JsonIgnoreProperties(ignoreUnknown=true) data class User( @JsonProperty("id") @get:JsonProperty("id") val id: Long, @JsonProperty("login") @get:JsonProperty("login") val login: String, @JsonProperty("name") @get:JsonProperty("name") val name: String?, @JsonProperty("email") @get:JsonProperty("email") val email: String?, @JsonProperty("avatar_url") @get:JsonProperty("avatar_url") val avatarUrl: String?, @JsonProperty("gravatar_id") @get:JsonProperty("gravatar_id") val gravatarId: String?, @JsonProperty("url") @get:JsonProperty("url") val url: String, @JsonProperty("html_url") @get:JsonProperty("html_url") val htmlUrl: String, @JsonProperty("type") @get:JsonProperty("type") val type: OwnerType ) : Serializable { fun toJsonString(): String = io.flow.github.v0.models.JacksonObjectMapperFactory.create().writeValueAsString(this) companion object { fun parseJson(json: String): User = io.flow.github.v0.models.JacksonObjectMapperFactory.create().readValue( json, User::class.java) } }