removed cls_to_dict() method in ClassParser, use magic method instead