public static bool GetIsIgnored(this JsonSerializerSettings settings, Type type, string underlyingName)
    {
        var property = settings.GetProperty(type, underlyingName);

        // The property might be null if it is nonpublic and not marked with [JsonProperty]
        return(property == null ? true : property.Ignored);
    }