package com.hbc.api.fraud.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] * General address model */ @JsonIgnoreProperties(ignoreUnknown=true) data class Address( @JsonProperty("name") @get:JsonProperty("name") val name: String, @JsonProperty("streetLineOne") @get:JsonProperty("streetLineOne") val streetLineOne: String, @JsonProperty("streetLineTwo") @get:JsonProperty("streetLineTwo") val streetLineTwo: String?, @JsonProperty("city") @get:JsonProperty("city") val city: String, @JsonProperty("state") @get:JsonProperty("state") val state: String, @JsonProperty("zip") @get:JsonProperty("zip") val zip: String, @JsonProperty("country") @get:JsonProperty("country") val country: String ) : Serializable { fun toJsonString(): String = com.hbc.api.fraud.v0.models.JacksonObjectMapperFactory.create().writeValueAsString(this) companion object { fun parseJson(json: String): Address = com.hbc.api.fraud.v0.models.JacksonObjectMapperFactory.create().readValue( json, Address::class.java) } }