# 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.ChatUser do
@moduledoc """
"""
@derive JSON.Encoder
defstruct [
:id,
:provider,
:accountId,
:name,
:realName,
:email,
:avatar,
:isBot,
:isActive
]
@type t :: %__MODULE__{
:id => String.t,
:provider => String.t | nil,
:accountId => String.t | nil,
:name => String.t,
:realName => String.t | nil,
:email => String.t | nil,
:avatar => Uri | nil,
:isBot => boolean(),
:isActive => boolean()
}
alias Spatio.Deserializer
def decode(value) do
value
|> Deserializer.deserialize(:avatar, :struct, Spatio.Model.Uri)
end
end