docs: def from_json(cls, data):
          """Create a Data Collection from a dictionary.
  
          Args:
              {
                  "header": A Ladybug Header,
                  "values": An array of values,
                  "datetimes": An array of datetimes,
                  "validated_a_period": Boolean for whether header analysis_period is valid
              }
          """
          assert 'header' in data, 'Required keyword "header" is missing!'
          assert 'values' in data, 'Required keyword "values" is missing!'
          assert 'datetimes' in data, 'Required keyword "datetimes" is missing!'
          coll = cls(Header.from_json(data['header']), data['values'], data['datetimes'])
          if 'validated_a_period' in data:
              coll._validated_a_period = data['validated_a_period']
          return coll