--[[
  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
]]

-- category class
local category = {}
local category_mt = {
	__name = "category";
	__index = category;
}

local function cast_category(t)
	return setmetatable(t, category_mt)
end

local function new_category(id, name)
	return cast_category({
		["id"] = id;
		["name"] = name;
	})
end

return {
	cast = cast_category;
	new = new_category;
}
