--[[
  OpenAPI Petstore

  This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.

  The version of the OpenAPI document: 1.0.0
  
  Generated by: https://openapi-generator.tech
]]

-- pet class
local pet = {}
local pet_mt = {
	__name = "pet";
	__index = pet;
}

local function cast_pet(t)
	return setmetatable(t, pet_mt)
end

local function new_pet(id, category, name, photo_urls, tags, status)
	return cast_pet({
		["id"] = id;
		["category"] = category;
		["name"] = name;
		["photoUrls"] = photo_urls;
		["tags"] = tags;
		["status"] = status;
	})
end

return {
	cast = cast_pet;
	new = new_pet;
}
