--[[
GameBrain API
GameBrain API
The version of the OpenAPI document: 1.0.1
Contact: mail@gamebrain.co
Generated by: https://openapi-generator.tech
]]
-- search_response class
local search_response = {}
local search_response_mt = {
__name = "search_response";
__index = search_response;
}
local function cast_search_response(t)
return setmetatable(t, search_response_mt)
end
local function new_search_response(sorting, active_filter_options, query, total_results, limit, offset, results, filter_options, sorting_options)
return cast_search_response({
["sorting"] = sorting;
["active_filter_options"] = active_filter_options;
["query"] = query;
["total_results"] = total_results;
["limit"] = limit;
["offset"] = offset;
["results"] = results;
["filter_options"] = filter_options;
["sorting_options"] = sorting_options;
})
end
return {
cast = cast_search_response;
new = new_search_response;
}