# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
# https://openapi-generator.tech
# Do not edit the class manually.
defmodule MailSlurpAPI.Model.DomainDto do
@moduledoc """
Domain plus verification records and status
"""
@derive [Poison.Encoder]
defstruct [
:"id",
:"userId",
:"domain",
:"verificationToken",
:"dkimTokens",
:"isVerified",
:"domainNameRecords",
:"catchAllInboxId",
:"createdAt",
:"updatedAt",
:"domainType"
]
@type t :: %__MODULE__{
:"id" => String.t,
:"userId" => String.t,
:"domain" => String.t,
:"verificationToken" => String.t,
:"dkimTokens" => [String.t],
:"isVerified" => boolean(),
:"domainNameRecords" => [DomainNameRecord],
:"catchAllInboxId" => String.t | nil,
:"createdAt" => DateTime.t,
:"updatedAt" => DateTime.t,
:"domainType" => String.t
}
end
defimpl Poison.Decoder, for: MailSlurpAPI.Model.DomainDto do
import MailSlurpAPI.Deserializer
def decode(value, options) do
value
|> deserialize(:"domainNameRecords", :list, MailSlurpAPI.Model.DomainNameRecord, options)
end
end