# NOTE: This class is auto generated by the swagger code generator program.
# https://github.com/swagger-api/swagger-codegen.git
# Do not edit the class manually.

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

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

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

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

