package io.flow.github.v0.models import com.fasterxml.jackson.annotation.JsonIgnoreProperties import com.fasterxml.jackson.annotation.JsonProperty import java.io.Serializable import kotlin.Boolean import kotlin.Long import kotlin.String /** * This code was generated by [models.generator.kotlin.KotlinGenerator] */ @JsonIgnoreProperties(ignoreUnknown=true) data class Repository( @JsonProperty("id") @get:JsonProperty("id") val id: Long, @JsonProperty("owner") @get:JsonProperty("owner") val owner: User, @JsonProperty("name") @get:JsonProperty("name") val name: String, @JsonProperty("full_name") @get:JsonProperty("full_name") val fullName: String, @JsonProperty("private") @get:JsonProperty("private") val private_: Boolean, @JsonProperty("description") @get:JsonProperty("description") val description: String?, @JsonProperty("url") @get:JsonProperty("url") val url: String, @JsonProperty("html_url") @get:JsonProperty("html_url") val htmlUrl: String, @JsonProperty("default_branch") @get:JsonProperty("default_branch") val defaultBranch: String ) : Serializable { fun toJsonString(): String = io.flow.github.v0.models.JacksonObjectMapperFactory.create().writeValueAsString(this) companion object { fun parseJson(json: String): Repository = io.flow.github.v0.models.JacksonObjectMapperFactory.create().readValue( json, Repository::class.java) } }