Package 

Class SerializerKt

    • Method Summary

      Modifier and Type Method Description
      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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.