package platform.ibm.com.customer.api.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] * customer Creation Form */ @JsonIgnoreProperties(ignoreUnknown=true) data class CustomerCreateForm( @JsonProperty("branchNumber") @get:JsonProperty("branchNumber") val branchNumber: String, @JsonProperty("customerName") @get:JsonProperty("customerName") val customerName: String, @JsonProperty("email") @get:JsonProperty("email") val email: String, @JsonProperty("address1") @get:JsonProperty("address1") val address1: String, @JsonProperty("address2") @get:JsonProperty("address2") val address2: 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 ) : Serializable { fun toJsonString(): String = platform.ibm.com.customer.api.v0.models.JacksonObjectMapperFactory.create().writeValueAsString(this) companion object { fun parseJson(json: String): CustomerCreateForm = platform.ibm.com.customer.api.v0.models.JacksonObjectMapperFactory.create().readValue( json, CustomerCreateForm::class.java) } }