code: def register_custom_adapter(cls, target_class, adapter):
          
  
          class_name = target_class.__name__
  
          if adapter.can_serialize():
              cls._custom_serializers[class_name] = adapter
  
          if adapter.can_deserialize():
              cls._custom_deserializers[class_name] = adapter
docs: :type target_class: type
          :type adapter: JsonAdapter|type
  
          :rtype: None