lib/chat_kitty/model/chat_function_resource.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 ChatKitty.Model.ChatFunctionResource do
  @moduledoc """
  
  """

  @derive [Poison.Encoder]
  defstruct [
    :"type",
    :"id",
    :"currentVersionNumber",
    :"description",
    :"enabled",
    :"name",
    :"runtime",
    :"_links"
  ]

  @type t :: %__MODULE__{
    :"type" => String.t,
    :"id" => integer(),
    :"currentVersionNumber" => integer(),
    :"description" => String.t | nil,
    :"enabled" => boolean(),
    :"name" => String.t,
    :"runtime" => ChatKitty.Model.ChatFunctionChatRuntimeProperties.t,
    :"_links" => %{optional(String.t) => ChatKitty.Model.Link.t} | nil
  }
end

defimpl Poison.Decoder, for: ChatKitty.Model.ChatFunctionResource do
  import ChatKitty.Deserializer
  def decode(value, options) do
    value
    |> deserialize(:"runtime", :struct, ChatKitty.Model.ChatFunctionChatRuntimeProperties, options)
    |> deserialize(:"_links", :map, ChatKitty.Model.Link, options)
  end
end