@utils.positional(<NUM_LIT:1>)<EOL><INDENT>def _to_dict(self, include=None, exclude=None):<DEDENT>
if (include is not None and<EOL>not isinstance(include, (list, tuple, set, frozenset))):<EOL><INDENT>raise TypeError('<STR_LIT>')<EOL><DEDENT>if (exclude is not None and<EOL>not isinstance(exclude, (list, tuple, set, frozenset))):<EOL><INDENT>raise TypeError('<STR_LIT>')<EOL><DEDENT>values = {}<EOL>for prop in self._properties.itervalues():<EOL><INDENT>name = prop._code_name<EOL>if include is not None and name not in include:<EOL><INDENT>continue<EOL><DEDENT>if exclude is not None and name in exclude:<EOL><INDENT>continue<EOL><DEDENT>try:<EOL><INDENT>values[name] = prop._get_for_dict(self)<EOL><DEDENT>except UnprojectedPropertyError:<EOL><INDENT>pass  <EOL><DEDENT><DEDENT>return values<EOL>
Return a dict containing the entity's property values.

        Args:
          include: Optional set of property names to include, default all.
          exclude: Optional set of property names to skip, default none.
            A name contained in both include and exclude is excluded.