@classmethod<EOL><INDENT>def from_json(cls, data):<DEDENT>
<EOL>required_keys = ('<STR_LIT>', '<STR_LIT>', '<STR_LIT>')<EOL>for key in required_keys:<EOL><INDENT>assert key in data, '<STR_LIT>'.format(key)<EOL><DEDENT>if data['<STR_LIT>'] == '<STR_LIT>':<EOL><INDENT>return OriginalClearSkyCondition.from_json(data)<EOL><DEDENT>if data['<STR_LIT>'] == '<STR_LIT>':<EOL><INDENT>return RevisedClearSkyCondition.from_json(data)<EOL><DEDENT>if '<STR_LIT>' not in data:<EOL><INDENT>data['<STR_LIT>'] = '<STR_LIT>'<EOL><DEDENT>optional_keys = ('<STR_LIT>', '<STR_LIT>')<EOL>for key in optional_keys:<EOL><INDENT>if key not in data:<EOL><INDENT>data[key] = '<STR_LIT>'<EOL><DEDENT><DEDENT>return cls(data['<STR_LIT>'], data['<STR_LIT>'], data['<STR_LIT>'],<EOL>data['<STR_LIT>'],<EOL>data['<STR_LIT>'], data['<STR_LIT>'])<EOL>
Create a Sky Condition from a dictionary.

        Args:
            data = {
            "solar_model": string,
            "month": int,
            "day_of_month": int,
            "daylight_savings_indicator": string // "Yes" or "No"}