public string? f { get; set; }
public string? h { get; set; }
public DefuncionDetalle(string? fecha, string? hora)
new DefuncionDetalle(null, null),
new DefuncionDetalle("2025-03-13", null),
new DefuncionDetalle(null, "14:30"),
new DefuncionDetalle("2025-03-13", "14:30")
foreach (var prueba in pruebas)
string json = System.Text.Json.JsonSerializer.Serialize(new { f = prueba.f ?? string.Empty, h = prueba.h ?? string.Empty });