=== Summary: 675 files | 7 generated | 484 fresh | 4605 untracked | 4268 adopted | 355 marked | 466 validated-ok | 2+0 stale (sig+body) | 0 skipped | 0 failed | elapsed 11:08:11.442 (40091.44s) ===

This commit is contained in:
julian
2026-06-28 02:50:05 -07:00
parent a19fb90902
commit 586f02a2ca
654 changed files with 5260 additions and 0 deletions
@@ -10,6 +10,7 @@ namespace adas_core.Domain.Models.BsonConverters;
/// <remarks>
/// Inherits from <see cref="JsonConverter"/> to provide custom conversion logic for dictionary-shaped data.
/// </remarks>
/// <!-- aidoc:v1 sig=7df0a03 -->
public class DictionaryConverter : JsonConverter
{
/// <summary>
@@ -18,6 +19,7 @@ public class DictionaryConverter : JsonConverter
/// </summary>
/// <param name="objectType">The type to evaluate for converter compatibility.</param>
/// <returns><c>true</c> if the type is <see cref="Dictionary{TKey, TValue}"/> of string and object; otherwise, <c>false</c>.</returns>
/// <!-- aidoc:v1 sig=ee00023 body=2fea12b -->
public override bool CanConvert(Type objectType)
{
return objectType == typeof(Dictionary<string, object>);
@@ -31,6 +33,7 @@ public class DictionaryConverter : JsonConverter
/// <param name="existingValue">The existing value of the object being read.</param>
/// <param name="serializer">The JSON serializer used to deserialize nested values.</param>
/// <returns>A dictionary containing the JSON properties mapped to their deserialized values.</returns>
/// <!-- aidoc:v1 sig=c91c541 body=db0fb4a -->
public override object ReadJson(JsonReader reader, Type objectType, object? existingValue,
JsonSerializer serializer)
{
@@ -74,6 +77,7 @@ public class DictionaryConverter : JsonConverter
/// <param name="writer">The JSON writer that receives the serialized output.</param>
/// <param name="value">The dictionary to serialize; if null, nothing is written.</param>
/// <param name="serializer">The serializer used to convert each dictionary value into a JSON token.</param>
/// <!-- aidoc:v1 sig=0bafa81 body=a4424e8 -->
public override void WriteJson(JsonWriter writer, object? value, JsonSerializer serializer)
{
if (value == null)