18 lines
730 B
C#
18 lines
730 B
C#
using System.Text.Json.Serialization;
|
|
|
|
namespace OI.Metrology.Shared.Models;
|
|
|
|
public record Inspection(
|
|
[property: JsonPropertyName("microscope")] bool Microscope,
|
|
[property: JsonPropertyName("brightlight")] bool Brightlight,
|
|
[property: JsonPropertyName("inspSigReq")] bool InspSigReq,
|
|
[property: JsonPropertyName("inspInterval")] int? InspInterval
|
|
// [property: JsonPropertyName("frontSide")] FrontSide FrontSide,
|
|
// [property: JsonPropertyName("backSide")] BackSide BackSide
|
|
);
|
|
|
|
[JsonSourceGenerationOptions(WriteIndented = true, NumberHandling = JsonNumberHandling.AllowReadingFromString)]
|
|
[JsonSerializable(typeof(Inspection))]
|
|
public partial class InspectionSourceGenerationContext : JsonSerializerContext
|
|
{
|
|
} |