@classmethod<EOL><INDENT>def from_json(cls, data):<DEDENT>
assert '<STR_LIT>' in data, '<STR_LIT>'<EOL>assert '<STR_LIT>' in data, '<STR_LIT>'<EOL>assert '<STR_LIT>' in data, '<STR_LIT>'<EOL>coll = cls(Header.from_json(data['<STR_LIT>']), data['<STR_LIT>'], data['<STR_LIT>'])<EOL>if '<STR_LIT>' in data:<EOL><INDENT>coll._validated_a_period = data['<STR_LIT>']<EOL><DEDENT>return coll<EOL>
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
            }