def layout_json_params(self):
        """Return layout.json params in a flattened dict with name param as key."""
        if self._layout_json_params is None:
            self._layout_json_params = {}
            for i in self.layout_json.get('inputs', []):
                for p in i.get('parameters', []):
                    self._layout_json_params.setdefault(p.get('name'), p)
        return self._layout_json_params
def layout_json_params ( self ) : if self . _layout_json_params is None : self . _layout_json_params = { } for i in self . layout_json . get ( 'inputs' , [ ] ) : for p in i . get ( 'parameters' , [ ] ) : self . _layout_json_params . setdefault ( p . get ( 'name' ) , p ) return self . _layout_json_params
Return layout.json params in a flattened dict with name param as key.