lib/mail_slurp_api/model/lookup_mta_sts_domain_results.ex

# 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.LookupMtaStsDomainResults do
  @moduledoc """
  
  """

  @derive [Poison.Encoder]
  defstruct [
    :"valid",
    :"query",
    :"records",
    :"wellKnownQuery",
    :"wellKnownPresent",
    :"wellKnownValue",
    :"errors",
    :"warnings"
  ]

  @type t :: %__MODULE__{
    :"valid" => boolean(),
    :"query" => DnsLookupOptions,
    :"records" => [DnsLookupResult],
    :"wellKnownQuery" => String.t,
    :"wellKnownPresent" => boolean(),
    :"wellKnownValue" => String.t,
    :"errors" => [String.t],
    :"warnings" => [String.t]
  }
end

defimpl Poison.Decoder, for: MailSlurpAPI.Model.LookupMtaStsDomainResults do
  import MailSlurpAPI.Deserializer
  def decode(value, options) do
    value
    |> deserialize(:"query", :struct, MailSlurpAPI.Model.DnsLookupOptions, options)
    |> deserialize(:"records", :list, MailSlurpAPI.Model.DnsLookupResult, options)
  end
end