package com.speedwing.pagerduty.api.v0.models import com.fasterxml.jackson.annotation.JsonIgnoreProperties import com.fasterxml.jackson.annotation.JsonProperty import com.speedwing.pagerduty.api.v0.enums.EventType import java.io.Serializable import kotlin.Any import kotlin.String /** * This code was generated by [models.generator.kotlin.KotlinGenerator] */ @JsonIgnoreProperties(ignoreUnknown=true) data class CreateEvent( @JsonProperty("service_key") @get:JsonProperty("service_key") val serviceKey: String, @JsonProperty("event_type") @get:JsonProperty("event_type") val eventType: EventType, @JsonProperty("incident_key") @get:JsonProperty("incident_key") val incidentKey: String?, @JsonProperty("description") @get:JsonProperty("description") val description: String?, @JsonProperty("details") @get:JsonProperty("details") val details: Any?, @JsonProperty("client") @get:JsonProperty("client") val client: String?, @JsonProperty("client_url") @get:JsonProperty("client_url") val clientUrl: String?, @JsonProperty("contexts") @get:JsonProperty("contexts") val contexts: Any? ) : Serializable { fun toJsonString(): String = com.speedwing.pagerduty.api.v0.models.JacksonObjectMapperFactory.create().writeValueAsString(this) companion object { fun parseJson(json: String): CreateEvent = com.speedwing.pagerduty.api.v0.models.JacksonObjectMapperFactory.create().readValue( json, CreateEvent::class.java) } }