namespace ASC.EventBus.Serializers;
///
/// Contract for Serializer implementation
///
public interface IIntegrationEventSerializer
{
///
/// Serializes the specified item.
///
/// The item.
/// Return the serialized object
byte[] Serialize(T? item);
///
/// Deserializes the specified bytes.
///
/// The type of the expected object.
/// The serialized object.
///
/// The instance of the specified Item
///
T Deserialize(byte[] serializedObject);
///
/// Deserializes the specified bytes.
///
/// The serialized object.
/// The return type.
///
/// The instance of the specified Item
///
object Deserialize(byte[] serializedObject, Type returnType);
}