def METHOD_NAME(self, layoutjson):
    try:
        vertical = True
        if "vertical" in layoutjson:
            vertical = layoutjson["vertical"]
            del layoutjson["vertical"]
        if len(layoutjson) == 1:
            firstitem = next(iter(layoutjson.values()))
            result = self.build_single_tab_layout(firstitem, vertical)
        else:
            result = self.build_multi_tab_layout(layoutjson, vertical)
        dbg('Json layout is: %s' % result)
        return result
    except Exception as ex:
        err('Error building a layout from file %s' % ex)
        return None