@classmethod<EOL><INDENT>def from_json(cls, data):<DEDENT>
if '<STR_LIT>' not in data:<EOL><INDENT>data['<STR_LIT>'] = <NUM_LIT:1><EOL><DEDENT>if '<STR_LIT>' not in data:<EOL><INDENT>data['<STR_LIT>'] = <NUM_LIT:1><EOL><DEDENT>if '<STR_LIT>' not in data:<EOL><INDENT>data['<STR_LIT>'] = <NUM_LIT:0><EOL><DEDENT>if '<STR_LIT>' not in data:<EOL><INDENT>data['<STR_LIT>'] = <NUM_LIT:0><EOL><DEDENT>if '<STR_LIT>' not in data:<EOL><INDENT>data['<STR_LIT>'] = <NUM_LIT><EOL><DEDENT>leap_year = True if int(data['<STR_LIT>']) == <NUM_LIT> else False<EOL>return cls(data['<STR_LIT>'], data['<STR_LIT>'], data['<STR_LIT>'], data['<STR_LIT>'], leap_year)<EOL>
Creat datetime from a dictionary.

        Args:
            data: {
                'month': A value for month between 1-12. (Defualt: 1)
                'day': A value for day between 1-31. (Defualt: 1)
                'hour': A value for hour between 0-23. (Defualt: 0)
                'minute': A value for month between 0-59. (Defualt: 0)
            }