code: def body(self, data, data_type, **kwargs):
          
          if data is None:
              raise ValidationError("required", "body", True)
  
          # Just in case this is a dict
          internal_data_type = data_type.strip('[]{}')
          internal_data_type = self.dependencies.get(internal_data_type, None)
          if internal_data_type and not isinstance(internal_data_type, Enum):
              try:
                  deserializer = Deserializer(self.dependencies)
                  # Since it's on serialization, it's almost sure that format is not JSON REST
                  # We're not able to deal with additional properties for now.
                  deserializer.additional_properties_detection = False
                  if issubclass(internal_data_type, Model) and internal_data_type.is_xml_model():
                      deserializer.key_extractors = [
                          attribute_key_case_insensitive_extractor,
                      ]
                  else:
                      deserializer.key_extractors = [
                          rest_key_case_insensitive_extractor,
                          attribute_key_case_insensitive_extractor,
                          last_rest_key_case_insensitive_extractor
                      ]
                  data = deserializer._deserialize(data_type, data)
              except DeserializationError as err:
                  raise_with_traceback(
                      SerializationError, "Unable to build a model: "+str(err), err)
  
          if self.client_side_validation:
              errors = _recursive_validate(data_type, data_type, data)
              if errors:
                  raise errors[0]
          return self._serialize(data, data_type, **kwargs)
docs: Serialize data intended for a request body.
  
          :param data: The data to be serialized.
          :param str data_type: The type to be serialized from.
          :rtype: dict
          :raises: SerializationError if serialization fails.
          :raises: ValueError if data is None