<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def layout_json_outputs(self):
 """Return layout.json outputs in a flattened dict with name param as key."""

        if self._layout_json_outputs is None:
            self._layout_json_outputs = {}
            for o in self.layout_json.get('outputs', []):
                self._layout_json_outputs.setdefault(o.get('name'), o)
        return self._layout_json_outputs