Mapster
Mapster copied to clipboard
Improve nullability annotations on the Adapt extension method
This PR introduces nullability annotations. A warning will now be triggered when attempting to map a nullable input to a non-nullable output, for example: ProductDTO dto = ((Product?)null).Adapt<ProductDTO>();