package com.hbc.svc.sundial.v2.models import com.fasterxml.jackson.annotation.JsonIgnoreProperties import com.fasterxml.jackson.annotation.JsonProperty import com.hbc.svc.sundial.v2.enums.NotificationOptions import java.io.Serializable import kotlin.String /** * This code was generated by [models.generator.kotlin.KotlinGenerator] * An email to send notifications to */ @JsonIgnoreProperties(ignoreUnknown=true) data class Email( @JsonProperty("name") @get:JsonProperty("name") val name: String, @JsonProperty("email") @get:JsonProperty("email") val email: String, @JsonProperty("notify_when") @get:JsonProperty("notify_when") val notifyWhen: NotificationOptions ) : Serializable { fun toJsonString(): String = com.hbc.svc.sundial.v2.models.JacksonObjectMapperFactory.create().writeValueAsString(this) companion object { fun parseJson(json: String): Email = com.hbc.svc.sundial.v2.models.JacksonObjectMapperFactory.create().readValue( json, Email::class.java) } }