(self, encoding=False)
return {
            'values': values
        }
Encode aggregation result as dict.

        Args:
            encoding: Boolean indicating if encoding info should be returned.

        Returns:
            Dict with aggregation result.
Encode aggregation result as dict.
Encode aggregation result as dict .
def to_dict(self, encoding=False):
        """Encode aggregation result as dict.

        Args:
            encoding: Boolean indicating if encoding info should be returned.

        Returns:
            Dict with aggregation result.
        """
        datasets = self._spec.get('datasets', {})
        values = []

        for dataset in datasets.values():
            values.extend(list(dataset))

        return {
            'values': values
        }
def to_dict ( self , encoding = False ) : datasets = self . _spec . get ( 'datasets' , { } ) values = [ ] for dataset in datasets . values ( ) : values . extend ( list ( dataset ) ) return { 'values' : values }