@classmethod<EOL><INDENT>def from_json(cls, data):<DEDENT>
<EOL>assert '<STR_LIT>' in data, '<STR_LIT>'<EOL>keys = ('<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>')<EOL>for key in keys:<EOL><INDENT>if key not in data:<EOL><INDENT>data[key] = None<EOL><DEDENT><DEDENT>data_type = DataTypeBase.from_json(data['<STR_LIT>'])<EOL>ap = AnalysisPeriod.from_json(data['<STR_LIT>'])<EOL>return cls(data_type, data['<STR_LIT>'], ap, data['<STR_LIT>'])<EOL>
Create a header from a dictionary.

        Args:
            data: {
                "data_type": {}, //Type of data (e.g. Temperature)
                "unit": string,
                "analysis_period": {} // A Ladybug AnalysisPeriod
                "metadata": {}, // A dictionary of metadata
            }