Throwable Serializer
ThrowableSerializer is a custom serializer for the Throwable class which is used to serialize/deserialize Throwable objects to/from json strings. This class implements the KSerializer interface provided by the kotlinx.serialization library.