@classmethod<EOL><INDENT>def from_json(cls, data):<DEDENT>
<EOL>optional_keys = {'<STR_LIT>': <NUM_LIT:0>, '<STR_LIT>': False, '<STR_LIT>': False}<EOL>assert '<STR_LIT>' in data, '<STR_LIT>'<EOL>for key, val in optional_keys.items():<EOL><INDENT>if key not in data:<EOL><INDENT>data[key] = val<EOL><DEDENT><DEDENT>return cls(data['<STR_LIT>'], data['<STR_LIT>'], data['<STR_LIT>'],<EOL>data['<STR_LIT>'])<EOL>
Create a Wind Condition from a dictionary.

        Args:
            data = {
            "wind_speed": float,
            "wind_direction": float,
            "rain": bool,
            "snow_on_ground": bool}