Models/ApiResponseRoot.cs
using System;
using System.Collections.Generic; using System.Text.Json.Serialization; namespace AcuPackageTools.Models; public record ApiResponseRoot(List<Log> Log) { [JsonPropertyName("log")] public List<Log> Log { get; } = Log; } public record Log( DateTime Timestamp, string LogType, string Message ) { [JsonPropertyName("timestamp")] public DateTime Timestamp { get; } = Timestamp; [JsonPropertyName("logType")] public string LogType { get; } = LogType; [JsonPropertyName("message")] public string Message { get; } = Message; } |