Class serializer
Last updated
Was this helpful?
Last updated
Was this helpful?
@node-ts/bus-class-serializer leverages to provide serialization/deserialization to class instances. This means that class based properties of messages like javascript Dates can be consumed directly without having to do additional custom deserialization in each handler.
Install @node-ts/bus-class-serializer and its dependencies
Configure bus to use the serializer
Once the @node-ts/bus-class-serializer has been installed and configured, you can consume class transformer notation for object properties of your messages.
For example