package com.github.sullis.email.markup.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] */ @JsonIgnoreProperties(ignoreUnknown=true) data class Address( @JsonProperty("addressCountry") @get:JsonProperty("addressCountry") val addressCountry: String, @JsonProperty("addressLocality") @get:JsonProperty("addressLocality") val addressLocality: String, @JsonProperty("addressRegion") @get:JsonProperty("addressRegion") val addressRegion: String, @JsonProperty("postalCode") @get:JsonProperty("postalCode") val postalCode: String, @JsonProperty("postOfficeBoxNumber") @get:JsonProperty("postOfficeBoxNumber") val postOfficeBoxNumber: String, @JsonProperty("streetAddress") @get:JsonProperty("streetAddress") val streetAddress: String ) : Serializable { fun toJsonString(): String = com.github.sullis.email.markup.v0.models.JacksonObjectMapperFactory.create().writeValueAsString(this) companion object { fun parseJson(json: String): Address = com.github.sullis.email.markup.v0.models.JacksonObjectMapperFactory.create().readValue( json, Address::class.java) } }