AnkiIO 1.0.2
Build, validate, import, and export Anki-compatible decks from .NET
Loading...
Searching...
No Matches
DeckDto.cs
1using System.Text.Json;
2using System.Text.Json.Serialization;
3
4namespace AnkiIO;
5
6internal sealed class DeckDto
7{
8 public long Id { get; set; }
9
10 public string Name { get; set; } = string.Empty;
11
12 public string Description { get; set; } = string.Empty;
13
14 public SortedDictionary<string, string>? Metadata { get; set; } = new(StringComparer.Ordinal);
15
16 public List<NoteDto>? Notes { get; set; } = [];
17
18 public List<DeckDto>? Subdecks { get; set; } = [];
19
20 [JsonExtensionData]
21 public SortedDictionary<string, JsonElement>? ExtensionData { get; set; }
22}