22 lines
601 B
C#
22 lines
601 B
C#
using System.Text.Json;
|
|
using System.Text.Json.Serialization;
|
|
|
|
namespace File_Folder_Helper.Models.Exif;
|
|
|
|
public record PhotoshopDirectory(string? JpegQuality,
|
|
string? Url)
|
|
{
|
|
|
|
public override string ToString()
|
|
{
|
|
string result = JsonSerializer.Serialize(this, PhotoshopDirectorySourceGenerationContext.Default.PhotoshopDirectory);
|
|
return result;
|
|
}
|
|
|
|
}
|
|
|
|
[JsonSourceGenerationOptions(WriteIndented = true)]
|
|
[JsonSerializable(typeof(PhotoshopDirectory))]
|
|
public partial class PhotoshopDirectorySourceGenerationContext : JsonSerializerContext
|
|
{
|
|
} |