Return the value of the field in entity (or ``None``).

def _get_value_for_serialization(self, data, name, spec):
        """ Return the value of the field in entity (or ``None``). """
        name = self.property_name_map[name]
        return getattr(data, name, None)