lib/spatio/model/chat_message.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.ChatMessage do
  @moduledoc """
  
  """

  @derive JSON.Encoder
  defstruct [
    :id,
    :provider,
    :accountId,
    :channelId,
    :userId,
    :text,
    :threadId,
    :timestamp,
    :replyCount,
    :extra
  ]

  @type t :: %__MODULE__{
    :id => String.t,
    :provider => String.t | nil,
    :accountId => String.t | nil,
    :channelId => String.t,
    :userId => String.t,
    :text => String.t,
    :threadId => String.t | nil,
    :timestamp => DateTime.t,
    :replyCount => integer() | nil,
    :extra => %{optional(String.t) => any()} | nil
  }

  def decode(value) do
    value
  end
end