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