Is it possible to create a custom serializer for a field (not the class that has this field) that treats the non-nullable field as absent in some cases? I have a structure that could be empty and I would like for serialization to treat absent value as an empty structure and empty structure as absent.