<PackageReference Include="Refit.HttpClientFactory" Version="17.0.0" />

System.Diagnostics.CodeAnalysis.NotNullWhenAttribute

Polyfill of the attribute that specifies a parameter is not null when the method returns the given value.
public bool ReturnValue { get; }

Gets the return value for which the parameter is guaranteed not null.

public NotNullWhenAttribute(bool returnValue)

Polyfill of the attribute that specifies a parameter is not null when the method returns the given value.