package io.flow.github.v0.models import com.fasterxml.jackson.annotation.JsonIgnoreProperties import com.fasterxml.jackson.annotation.JsonProperty import io.flow.github.v0.enums.HookEvent import java.io.Serializable import kotlin.Boolean import kotlin.String import kotlin.collections.List /** * This code was generated by [models.generator.kotlin.KotlinGenerator] */ @JsonIgnoreProperties(ignoreUnknown=true) data class HookForm( @JsonProperty("name") @get:JsonProperty("name") val name: String, @JsonProperty("config") @get:JsonProperty("config") val config: HookConfig, @JsonProperty("events") @get:JsonProperty("events") val events: List, @JsonProperty("active") @get:JsonProperty("active") val active: Boolean ) : Serializable { fun toJsonString(): String = io.flow.github.v0.models.JacksonObjectMapperFactory.create().writeValueAsString(this) companion object { fun parseJson(json: String): HookForm = io.flow.github.v0.models.JacksonObjectMapperFactory.create().readValue( json, HookForm::class.java) } }