using System.Collections.Generic; using System.Text.Json.Serialization; using Common; using SixLabors.ImageSharp.Metadata.Profiles.Exif; namespace thumbnail { [JsonSerializable(typeof(Input))] [JsonSerializable(typeof(ThumbnailInfo))] [JsonSerializable(typeof(ExecutionInput))] [JsonSerializable(typeof(TransformedMetadata))] [JsonSerializable(typeof(string))] [JsonSerializable(typeof(System.String))] [JsonSerializable(typeof(ExifProfile))] public partial class CustomJsonSerializerContext : JsonSerializerContext { // By using this partial class derived from JsonSerializerContext, we can generate reflection free JSON Serializer code at compile time // which can deserialize our class and properties. However, we must attribute this class to tell it what types to generate serialization code for // See https://docs.microsoft.com/en-us/dotnet/standard/serialization/system-text-json-source-generation } }