using System.Text.Json.Serialization; namespace OI.Metrology.Shared.Models; public record NginxFileSystem( [property: JsonPropertyName("name")] string Name, [property: JsonPropertyName("type")] string Type, [property: JsonPropertyName("mtime")] string MTime, [property: JsonPropertyName("size")] float Size); [JsonSourceGenerationOptions(WriteIndented = true)] [JsonSerializable(typeof(NginxFileSystem))] public partial class NginxFileSystemSourceGenerationContext : JsonSerializerContext { } [JsonSourceGenerationOptions(WriteIndented = true)] [JsonSerializable(typeof(NginxFileSystem[]))] public partial class NginxFileSystemCollectionSourceGenerationContext : JsonSerializerContext { }