Empty List Serializer
A custom serializer for handling nullable lists during serialization and deserialization.
This serializer ensures that null
values are deserialized as an empty list (List<T>
), avoiding potential issues with nullability when working with collections. It can be used for fields that are expected to be lists but may sometimes be null
in the input.
Parameters
T
The type of elements contained within the list.