code: def to_internal_value(self, data):
          
  
          if html.is_html_input(data):
              data = html.parse_html_dict(data)
          if not isinstance(data, dict):
              self.fail('not_a_dict', input_type=type(data).__name__)
          if not self.allow_empty and len(data.keys()) == 0:
              message = self.error_messages['empty']
              raise ValidationError({
                  api_settings.NON_FIELD_ERRORS_KEY: [message]
              })
          return {
              six.text_type(key): self.child.run_validation(value)
              for key, value in data.items()
          }
docs: Dicts of native values <- Dicts of primitive datatypes.