namespace FruityFoundation.Base.Structures; public static class NullableExtensions { public static Maybe ToMaybe(this T? item) where T : struct => item ?? Maybe.Empty(); public static Maybe AsMaybe(this T? item) where T : class => item ?? Maybe.Empty(); }