package com.gilt.svc.sundial.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] * See http://quartz-scheduler.org/api/2.2.0/org/quartz/CronExpression.html */ @JsonIgnoreProperties(ignoreUnknown=true) data class CronSchedule( @JsonProperty("day_of_week") @get:JsonProperty("day_of_week") val dayOfWeek: String, @JsonProperty("month") @get:JsonProperty("month") val month: String, @JsonProperty("day_of_month") @get:JsonProperty("day_of_month") val dayOfMonth: String, @JsonProperty("hours") @get:JsonProperty("hours") val hours: String, @JsonProperty("minutes") @get:JsonProperty("minutes") val minutes: String ) : Serializable { fun toJsonString(): String = com.gilt.svc.sundial.v0.models.JacksonObjectMapperFactory.create().writeValueAsString(this) companion object { fun parseJson(json: String): CronSchedule = com.gilt.svc.sundial.v0.models.JacksonObjectMapperFactory.create().readValue( json, CronSchedule::class.java) } }