--[[
  CoinAPI Indexes REST API

  No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

  The version of the OpenAPI document: v1
  Contact: support@apibricks.io
  Generated by: https://openapi-generator.tech
]]

-- metadata_timeseries_period class
local metadata_timeseries_period = {}
local metadata_timeseries_period_mt = {
	__name = "metadata_timeseries_period";
	__index = metadata_timeseries_period;
}

local function cast_metadata_timeseries_period(t)
	return setmetatable(t, metadata_timeseries_period_mt)
end

local function new_metadata_timeseries_period(period_id, length_seconds, length_months, unit_count, unit_name, display_name)
	return cast_metadata_timeseries_period({
		["period_id"] = period_id;
		["length_seconds"] = length_seconds;
		["length_months"] = length_months;
		["unit_count"] = unit_count;
		["unit_name"] = unit_name;
		["display_name"] = display_name;
	})
end

return {
	cast = cast_metadata_timeseries_period;
	new = new_metadata_timeseries_period;
}
