lib/spatio/model/agent_conversation_list_response.ex

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

  @derive JSON.Encoder
  defstruct [
    :conversations,
    :total
  ]

  @type t :: %__MODULE__{
    :conversations => [Spatio.Model.AgentConversation.t],
    :total => integer() | nil
  }

  alias Spatio.Deserializer

  def decode(value) do
    value
     |> Deserializer.deserialize(:conversations, :list, Spatio.Model.AgentConversation)
  end
end