package com.hbc.svc.sundial.v2.models import com.fasterxml.jackson.annotation.JsonIgnoreProperties import com.fasterxml.jackson.annotation.JsonProperty import java.io.Serializable import kotlin.Int import kotlin.String /** * This code was generated by [models.generator.kotlin.KotlinGenerator] * Pager Duty integration */ @JsonIgnoreProperties(ignoreUnknown=true) data class Pagerduty( @JsonProperty("service_key") @get:JsonProperty("service_key") val serviceKey: String, @JsonProperty("num_consecutive_failures") @get:JsonProperty("num_consecutive_failures") val numConsecutiveFailures: Int, @JsonProperty("api_url") @get:JsonProperty("api_url") val apiUrl: String ) : Serializable { fun toJsonString(): String = com.hbc.svc.sundial.v2.models.JacksonObjectMapperFactory.create().writeValueAsString(this) companion object { fun parseJson(json: String): Pagerduty = com.hbc.svc.sundial.v2.models.JacksonObjectMapperFactory.create().readValue( json, Pagerduty::class.java) } }