package io.flow.github.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] */ @JsonIgnoreProperties(ignoreUnknown=true) data class PullRequestForm( @JsonProperty("title") @get:JsonProperty("title") val title: String, @JsonProperty("head") @get:JsonProperty("head") val head: String, @JsonProperty("base") @get:JsonProperty("base") val base: String, @JsonProperty("body") @get:JsonProperty("body") val body: String? ) : Serializable { fun toJsonString(): String = io.flow.github.v0.models.JacksonObjectMapperFactory.create().writeValueAsString(this) companion object { fun parseJson(json: String): PullRequestForm = io.flow.github.v0.models.JacksonObjectMapperFactory.create().readValue( json, PullRequestForm::class.java) } }