lib/chat_kitty/model/application_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.ApplicationResource do
  @moduledoc """
  
  """

  @derive [Poison.Encoder]
  defstruct [
    :"id",
    :"createdTime",
    :"key",
    :"properties",
    :"_links"
  ]

  @type t :: %__MODULE__{
    :"id" => integer(),
    :"createdTime" => DateTime.t,
    :"key" => String.t,
    :"properties" => %{optional(String.t) => AnyType},
    :"_links" => %{optional(String.t) => ChatKitty.Model.Link.t} | nil
  }
end

defimpl Poison.Decoder, for: ChatKitty.Model.ApplicationResource do
  import ChatKitty.Deserializer
  def decode(value, options) do
    value
    |> deserialize(:"properties", :map, ChatKitty.Model.AnyType, options)
    |> deserialize(:"_links", :map, ChatKitty.Model.Link, options)
  end
end