public static void WriteBooleanWhenNotNull(
     this Utf8JsonWriter writer,
     string propertyName,
     bool?value)
 => writer.WriteBooleanWhenNotNull(JsonEncodedText.Encode(propertyName), value);