using System.Text.Json.Serialization; namespace OI.Metrology.Shared.Models; public record PollValue(string? Json, [property: JsonPropertyName("id")] int? Id, [property: JsonPropertyName("page")] string? Page, string? QueryString, string? RemoteIpAddress, [property: JsonPropertyName("time")] long? Time, [property: JsonPropertyName("value")] int? Value); [JsonSourceGenerationOptions(WriteIndented = true, NumberHandling = JsonNumberHandling.AllowReadingFromString)] [JsonSerializable(typeof(PollValue))] public partial class PollValueSourceGenerationContext : JsonSerializerContext { }