# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
# https://openapi-generator.tech
# Do not edit the class manually.
defmodule ChatKitty.Model.ChatUserResource do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:"type",
:"id",
:"callStatus",
:"displayName",
:"displayPictureUrl",
:"isGuest",
:"name",
:"presence",
:"properties",
:"_links"
]
@type t :: %__MODULE__{
:"type" => String.t,
:"id" => integer(),
:"callStatus" => String.t | nil,
:"displayName" => String.t,
:"displayPictureUrl" => String.t,
:"isGuest" => boolean(),
:"name" => String.t,
:"presence" => ChatKitty.Model.ChatUserPresenceProperties.t,
:"properties" => %{optional(String.t) => AnyType},
:"_links" => %{optional(String.t) => ChatKitty.Model.Link.t} | nil
}
end
defimpl Poison.Decoder, for: ChatKitty.Model.ChatUserResource do
import ChatKitty.Deserializer
def decode(value, options) do
value
|> deserialize(:"presence", :struct, ChatKitty.Model.ChatUserPresenceProperties, options)
|> deserialize(:"properties", :map, ChatKitty.Model.AnyType, options)
|> deserialize(:"_links", :map, ChatKitty.Model.Link, options)
end
end