# NOTE: This file is auto generated by OpenAPI Generator 7.22.0 (https://openapi-generator.tech).
# Do not edit this file manually.
defmodule Spatio.Model.SendEmailRequest do
@moduledoc """
"""
@derive JSON.Encoder
defstruct [
:accountId,
:to,
:cc,
:bcc,
:subject,
:body,
:html,
:attachments,
:inReplyTo,
:references
]
@type t :: %__MODULE__{
:accountId => String.t | nil,
:to => [String.t],
:cc => [String.t] | nil,
:bcc => [String.t] | nil,
:subject => String.t,
:body => String.t,
:html => boolean() | nil,
:attachments => [Spatio.Model.AttachmentInput.t] | nil,
:inReplyTo => String.t | nil,
:references => [String.t] | nil
}
alias Spatio.Deserializer
def decode(value) do
value
|> Deserializer.deserialize(:attachments, :list, Spatio.Model.AttachmentInput)
end
end