# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
# https://openapi-generator.tech
# Do not edit the class manually.

defmodule OpenapiPetstore.Model.Pet do
  @moduledoc """
  
  """

  @derive [Poison.Encoder]
  defstruct [
    :"id",
    :"category",
    :"name",
    :"photoUrls",
    :"tags",
    :"status"
  ]

  @type t :: %__MODULE__{
    :"id" => integer() | nil,
    :"category" => Category | nil,
    :"name" => String.t,
    :"photoUrls" => [String.t],
    :"tags" => [Tag] | nil,
    :"status" => String.t | nil
  }
end

defimpl Poison.Decoder, for: OpenapiPetstore.Model.Pet do
  import OpenapiPetstore.Deserializer
  def decode(value, options) do
    value
    |> deserialize(:"category", :struct, OpenapiPetstore.Model.Category, options)
    |> deserialize(:"tags", :list, OpenapiPetstore.Model.Tag, options)
  end
end

