package com.github.sullis.email.markup.v0.models import com.fasterxml.jackson.annotation.JsonIgnoreProperties import com.fasterxml.jackson.annotation.JsonProperty import com.github.sullis.email.markup.v0.enums.ActionTypes import java.io.Serializable import kotlin.String /** * This code was generated by [models.generator.kotlin.KotlinGenerator] */ @JsonIgnoreProperties(ignoreUnknown=true) data class PotentialAction( @JsonProperty("at_type") @get:JsonProperty("at_type") val atType: ActionTypes, @JsonProperty("handler") @get:JsonProperty("handler") val handler: ActionHandler?, @JsonProperty("name") @get:JsonProperty("name") val name: String, @JsonProperty("target") @get:JsonProperty("target") val target: String ) : Serializable { fun toJsonString(): String = com.github.sullis.email.markup.v0.models.JacksonObjectMapperFactory.create().writeValueAsString(this) companion object { fun parseJson(json: String): PotentialAction = com.github.sullis.email.markup.v0.models.JacksonObjectMapperFactory.create().readValue( json, PotentialAction::class.java) } }