rama creada apartir de master en j

This commit is contained in:
jrojas
2026-06-26 10:29:23 +02:00
parent 319fd3dfb0
commit c1517fda87
2810 changed files with 1927392 additions and 25392 deletions
@@ -4,12 +4,23 @@ using Newtonsoft.Json.Linq;
namespace adas_core.Infrastructure.Utils;
/// <summary>
/// Provides a custom JSON conversion implementation for point of care data, extending the base <see cref="JsonConverter"/> functionality.
/// </summary>
/// <remarks>
/// This converter is designed to handle the serialization and deserialization logic specific to point of care entities, tailoring the behavior inherited from the <see cref="JsonConverter"/> base class.
/// </remarks>
public class CustomPointOfCareConverter : JsonConverter
{
/// <summary>
/// Determines whether the converter can convert the specified type. Returns <c>true</c> only when the supplied type is <see cref="PointOfCare"/>; otherwise, returns <c>false</c>.
/// </summary>
/// <param name="objectType">The type to evaluate for convertibility.</param>
/// <returns><c>true</c> if <paramref name="objectType"/> equals <see cref="PointOfCare"/>; otherwise, <c>false</c>.</returns>
public override bool CanConvert(Type objectType)
{
return objectType == typeof(PointOfCare);
}
{
return objectType == typeof(PointOfCare);
}
public override void WriteJson(JsonWriter writer, object? value, JsonSerializer serializer)
{