-
public final class SerializerKt
-
-
Method Summary
Modifier and Type Method Description final static <T extends Any> ByteArrayserializeToByteArray(Serializer<T> $self, T model, InternalLogger internalLogger)A utility class to serialize a model to a ByteArray safely. -
-
Method Detail
-
serializeToByteArray
final static <T extends Any> ByteArray serializeToByteArray(Serializer<T> $self, T model, InternalLogger internalLogger)
A utility class to serialize a model to a ByteArray safely. If an exception is thrown while serializing the data, null is returned, and a message will be sent to the internalLogger.
- Parameters:
model- Data object to serialize.internalLogger- Internal logger.
-
-
-
-