lib/mail_slurp_api/model/thread_projection.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.ThreadProjection do
  @moduledoc """
  A thread is a message thread created for a message received by an alias
  """

  @derive [Poison.Encoder]
  defstruct [
    :"name",
    :"id",
    :"subject",
    :"inboxId",
    :"userId",
    :"to",
    :"bcc",
    :"cc",
    :"createdAt",
    :"updatedAt",
    :"aliasId"
  ]

  @type t :: %__MODULE__{
    :"name" => String.t | nil,
    :"id" => String.t,
    :"subject" => String.t | nil,
    :"inboxId" => String.t,
    :"userId" => String.t,
    :"to" => [String.t],
    :"bcc" => [String.t] | nil,
    :"cc" => [String.t] | nil,
    :"createdAt" => DateTime.t,
    :"updatedAt" => DateTime.t,
    :"aliasId" => String.t
  }
end

defimpl Poison.Decoder, for: MailSlurpAPI.Model.ThreadProjection do
  def decode(value, _options) do
    value
  end
end