(self, keys, payload)
return {keys[0]: self._nest_payload(keys[1:], payload)}
Nest a payload in a dict under the keys contained in `keys`
Nest a payload in a dict under the keys contained in `keys`
Nest a payload in a dict under the keys contained in keys
def _nest_payload(self, keys, payload):
        """
        Nest a payload in a dict under the keys contained in `keys`
        """
        if len(keys) == 0:
            return payload

        return {keys[0]: self._nest_payload(keys[1:], payload)}
def _nest_payload ( self , keys , payload ) : if len ( keys ) == 0 : return payload return { keys [ 0 ] : self . _nest_payload ( keys [ 1 : ] , payload ) }