package com.afrosoft.apibuilder.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] * Represents a single domain name (e.g. www.apibuilder.io). When a new user registers and confirms * their email, we automatically associate that user with a member of the organization associated with * their domain. For example, if you confirm your account with an email address of * example@somedomain.com, we will automatically create a membership request on your behalf to join the * organization with domain somedomain.com. */ @JsonIgnoreProperties(ignoreUnknown=true) data class Domain( @JsonProperty("name") @get:JsonProperty("name") val name: String ) : Serializable { fun toJsonString(): String = com.afrosoft.apibuilder.api.v0.models.JacksonObjectMapperFactory.create().writeValueAsString(this) companion object { fun parseJson(json: String): Domain = com.afrosoft.apibuilder.api.v0.models.JacksonObjectMapperFactory.create().readValue( json, Domain::class.java) } }