lib/docusign/model/notary_result.ex

# NOTE: This file is auto generated by OpenAPI Generator 6.4.0 (https://openapi-generator.tech).
# Do not edit this file manually.

defmodule DocuSign.Model.NotaryResult do
  @moduledoc """
  Describes a single notary jurisdiction.
  """

  @derive [Poison.Encoder]
  defstruct [
    :jurisdictions,
    :notary
  ]

  @type t :: %__MODULE__{
          :jurisdictions => [DocuSign.Model.Jurisdiction.t()] | nil,
          :notary => DocuSign.Model.Notary.t() | nil
        }
end

defimpl Poison.Decoder, for: DocuSign.Model.NotaryResult do
  import DocuSign.Deserializer

  def decode(value, options) do
    value
    |> deserialize(:jurisdictions, :list, DocuSign.Model.Jurisdiction, options)
    |> deserialize(:notary, :struct, DocuSign.Model.Notary, options)
  end
end