<PackageReference Include="Refit.HttpClientFactory" Version="15.0.0-beta.1" />

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.