def identity_map(self):
        """(:class:`typing.Mapping`\ [:class:`str`, :class:`object`])
        A dictionary of the values of primary key fields with their names.

        .. versionadded:: 1.0.0

        """
        pk = self.identity_attributes()
        values = {}
        for name in pk:
            values[name] = getattr(self, name)
        return values