def _from_dict(cls, _dict):
        """Initialize a MetricTokenAggregation object from a json dictionary."""
        args = {}
        if 'event_type' in _dict:
            args['event_type'] = _dict.get('event_type')
        if 'results' in _dict:
            args['results'] = [
                MetricTokenAggregationResult._from_dict(x)
                for x in (_dict.get('results'))
            ]
        return cls(**args)
Initialize a MetricTokenAggregation object from a json dictionary.