package io.flow.github.v0.models import com.fasterxml.jackson.annotation.JsonIgnoreProperties import com.fasterxml.jackson.annotation.JsonProperty import java.io.Serializable import kotlin.Long import kotlin.String /** * This code was generated by [models.generator.kotlin.KotlinGenerator] */ @JsonIgnoreProperties(ignoreUnknown=true) data class PullRequest( @JsonProperty("id") @get:JsonProperty("id") val id: Long, @JsonProperty("url") @get:JsonProperty("url") val url: String, @JsonProperty("number") @get:JsonProperty("number") val number: Long, @JsonProperty("html_url") @get:JsonProperty("html_url") val htmlUrl: String, @JsonProperty("head") @get:JsonProperty("head") val head: PullRequestHead ) : Serializable { fun toJsonString(): String = io.flow.github.v0.models.JacksonObjectMapperFactory.create().writeValueAsString(this) companion object { fun parseJson(json: String): PullRequest = io.flow.github.v0.models.JacksonObjectMapperFactory.create().readValue( json, PullRequest::class.java) } }