# 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.EmailRecipients do
@moduledoc """
The `To`,`CC`,`BCC` recipients stored in object form with email address and name accessible.
"""
@derive [Poison.Encoder]
defstruct [
:"to",
:"cc",
:"bcc"
]
@type t :: %__MODULE__{
:"to" => [Recipient] | nil,
:"cc" => [Recipient] | nil,
:"bcc" => [Recipient] | nil
}
end
defimpl Poison.Decoder, for: MailSlurpAPI.Model.EmailRecipients do
import MailSlurpAPI.Deserializer
def decode(value, options) do
value
|> deserialize(:"to", :list, MailSlurpAPI.Model.Recipient, options)
|> deserialize(:"cc", :list, MailSlurpAPI.Model.Recipient, options)
|> deserialize(:"bcc", :list, MailSlurpAPI.Model.Recipient, options)
end
end