@classmethod<EOL><INDENT>def from_json(cls, data):<DEDENT>
required_keys = ('<STR_LIT:location>', '<STR_LIT>')<EOL>for key in required_keys:<EOL><INDENT>assert key in data, '<STR_LIT>'.format(key)<EOL><DEDENT>return cls(Location.from_json(data['<STR_LIT:location>']),<EOL>[DesignDay.from_json(des_day) for des_day in data['<STR_LIT>']])<EOL>
Create a DDY from a dictionary.

        Args:
            data = {
            "location": ladybug Location schema,
            "design_days": [] // list of ladybug DesignDay schemas}